Skip to content

Commit

Permalink
Merge pull request #3920 from MilhouseVH/le92_fix_init_busy
Browse files Browse the repository at this point in the history
init: unmount /update after a failed update [backport]
  • Loading branch information
CvH authored Oct 17, 2019
2 parents 3524972 + a233e79 commit a00b801
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/sysutils/busybox/scripts/init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -938,7 +940,6 @@ check_update() {
umount /sysroot
update_file "System" "$UPDATE_SYSTEM" "/flash/$IMAGE_SYSTEM"
update_bootloader
umount /update
do_cleanup
do_reboot
}
Expand Down

0 comments on commit a00b801

Please sign in to comment.