Commit f9650395 authored by Kaarle Ritvanen's avatar Kaarle Ritvanen
Browse files

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" ...@@ -158,8 +158,8 @@ cp "$BOOT/vmlinuz$KVER_FLAVOR" "$STAGING/$FLAVOR"
if [ "$MNTDIR" ]; then if [ "$MNTDIR" ]; then
ignore_sigs ignore_sigs
umount /.modloop
remount -w remount -w
fi fi
...@@ -168,6 +168,7 @@ if [ "$MNTDIR" ]; then ...@@ -168,6 +168,7 @@ if [ "$MNTDIR" ]; then
set +e set +e
sync sync
remount -r remount -r
mount -o loop "$DESTDIR/$MODIMG" /.modloop
fi fi
exit 0 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