From f9650395728287a13570ff5bb9de76727c228fb4 Mon Sep 17 00:00:00 2001 From: Kaarle Ritvanen Date: Sun, 2 Nov 2014 22:30:21 +0200 Subject: 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. --- update-kernel.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3