diff options
author | Andrea Righi <andrea.righi@canonical.com> | 2019-08-16 23:43:54 +0200 |
---|---|---|
committer | Andrea Righi <andrea.righi@canonical.com> | 2019-08-16 23:43:54 +0200 |
commit | f01e43b2440cc0f99c294a8639365999e4934bb6 (patch) | |
tree | 6155888a5afc9f7d00d62f7e3c786508176979be | |
parent | 3a65e4b514c003b7b9cc2a58ff8f56b5d00e8fa5 (diff) | |
download | virtme-f01e43b2440cc0f99c294a8639365999e4934bb6.tar.gz |
virtme-prep-kdir-mods: get modules from modules.order
Get the list of kernel modules from modules.order, otherwise we may miss
some of them in the temporary virtme module directory.
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
-rwxr-xr-x | bin/virtme-prep-kdir-mods | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/virtme-prep-kdir-mods b/bin/virtme-prep-kdir-mods index 1906e81..c36fecc 100755 --- a/bin/virtme-prep-kdir-mods +++ b/bin/virtme-prep-kdir-mods @@ -19,10 +19,10 @@ ln -srfT . "$MODDIR/build" # Remove all preexisting symlinks and add symlinks to all modules that belong # to the build kenrnel. find "$MODDIR/kernel" -type l -print0 |xargs -0 rm -f -- -grep -h '.ko$' .tmp_versions/*.mod |while read -r i; do +while read -r i; do mkdir -p "$MODDIR/kernel/$(dirname "$i")" ln -sr "$i" "$MODDIR/kernel/$i" -done +done < modules.order # Link in the files that make modules_install would copy |