diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-11-02 22:30:21 +0200 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2014-11-02 22:32:43 +0200 |
commit | f9650395728287a13570ff5bb9de76727c228fb4 (patch) | |
tree | 702f8160d938aa32e0c6479c1c4a2fe1e38da4d7 | |
parent | 78c5156f511776403e6be73c9c4baf157690f91d (diff) | |
download | alpine-conf-f9650395728287a13570ff5bb9de76727c228fb4.zip |
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.
-rw-r--r-- | update-kernel.in | 3 |
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 |