summaryrefslogtreecommitdiff
path: root/update-kernel.in
diff options
context:
space:
mode:
Diffstat (limited to 'update-kernel.in')
-rw-r--r--update-kernel.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/update-kernel.in b/update-kernel.in
index 74dbe75..9344dd8 100644
--- a/update-kernel.in
+++ b/update-kernel.in
@@ -158,8 +158,8 @@ cp "$BOOT/vmlinuz$KVER_FLAVOR" "$STAGING/$FLAVOR"
if [ "$MNTDIR" ]; then
ignore_sigs
+ umount /.modloop
remount -w
- rm -f "$DESTDIR/$MODIMG"
fi
mv "$STAGING"/* "$DESTDIR"
@@ -168,6 +168,7 @@ if [ "$MNTDIR" ]; then
set +e
sync
remount -r
+ mount -o loop "$DESTDIR/$MODIMG" /.modloop
fi
exit 0