From a233e7936a0fbef425c6c04b991f94fff5b14278 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Thu, 17 Oct 2019 18:13:07 +0100 Subject: [PATCH] init: unmount /update after a failed update --- packages/sysutils/busybox/scripts/init | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index 7e60dc6565..5cd66478d0 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -677,6 +677,8 @@ check_out_of_space() { do_cleanup() { StartProgress spinner "Cleaning up... " + umount /update 2>/dev/null + if [ -d $UPDATE_ROOT/.tmp/mnt ]; then if mountpoint -q $UPDATE_ROOT/.tmp/mnt ; then # busybox umount deletes loop device automatically @@ -938,7 +940,6 @@ check_update() { umount /sysroot update_file "System" "$UPDATE_SYSTEM" "/flash/$IMAGE_SYSTEM" update_bootloader - umount /update do_cleanup do_reboot }