aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrea Righi <andrea.righi@canonical.com>2019-08-19 12:29:42 +0200
committerAndrea Righi <andrea.righi@canonical.com>2019-08-19 12:29:42 +0200
commitd16d93d24e3fc5f6b7ecec1cc8a666c6ddeef851 (patch)
tree664131ccb7d021427e23812b28d60cc156a2e483
parentf01e43b2440cc0f99c294a8639365999e4934bb6 (diff)
downloadvirtme-d16d93d24e3fc5f6b7ecec1cc8a666c6ddeef851.tar.gz
virtme-prep-kdir-mods: correctly parse modules from modules.order
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
-rwxr-xr-xbin/virtme-prep-kdir-mods1
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