Commit f9650395 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen

update-kernel: unmount modloop during update

Just unlinking the image prevents remounting the target file system in
read-only mode as long as the image remains mounted.
parent 78c5156f
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment