diff options
author | Andrea Righi <andrea.righi@canonical.com> | 2019-08-19 12:29:42 +0200 |
---|---|---|
committer | Andrea Righi <andrea.righi@canonical.com> | 2019-08-19 12:29:42 +0200 |
commit | d16d93d24e3fc5f6b7ecec1cc8a666c6ddeef851 (patch) | |
tree | 664131ccb7d021427e23812b28d60cc156a2e483 | |
parent | f01e43b2440cc0f99c294a8639365999e4934bb6 (diff) | |
download | virtme-d16d93d24e3fc5f6b7ecec1cc8a666c6ddeef851.tar.gz |
virtme-prep-kdir-mods: correctly parse modules from modules.order
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
-rwxr-xr-x | bin/virtme-prep-kdir-mods | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/virtme-prep-kdir-mods b/bin/virtme-prep-kdir-mods index c36fecc..309e755 100755 --- a/bin/virtme-prep-kdir-mods +++ b/bin/virtme-prep-kdir-mods @@ -20,6 +20,7 @@ ln -srfT . "$MODDIR/build" # to the build kenrnel. find "$MODDIR/kernel" -type l -print0 |xargs -0 rm -f -- while read -r i; do + [ ! -e $i ] && i=$(echo $i | sed s:^kernel/::) mkdir -p "$MODDIR/kernel/$(dirname "$i")" ln -sr "$i" "$MODDIR/kernel/$i" done < modules.order |