mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-27 20:56:55 +00:00
Merge pull request #3920 from MilhouseVH/le92_fix_init_busy
init: unmount /update after a failed update [backport]
This commit is contained in:
commit
a00b801426
@ -677,6 +677,8 @@ check_out_of_space() {
|
|||||||
do_cleanup() {
|
do_cleanup() {
|
||||||
StartProgress spinner "Cleaning up... "
|
StartProgress spinner "Cleaning up... "
|
||||||
|
|
||||||
|
umount /update 2>/dev/null
|
||||||
|
|
||||||
if [ -d $UPDATE_ROOT/.tmp/mnt ]; then
|
if [ -d $UPDATE_ROOT/.tmp/mnt ]; then
|
||||||
if mountpoint -q $UPDATE_ROOT/.tmp/mnt ; then
|
if mountpoint -q $UPDATE_ROOT/.tmp/mnt ; then
|
||||||
# busybox umount deletes loop device automatically
|
# busybox umount deletes loop device automatically
|
||||||
@ -938,7 +940,6 @@ check_update() {
|
|||||||
umount /sysroot
|
umount /sysroot
|
||||||
update_file "System" "$UPDATE_SYSTEM" "/flash/$IMAGE_SYSTEM"
|
update_file "System" "$UPDATE_SYSTEM" "/flash/$IMAGE_SYSTEM"
|
||||||
update_bootloader
|
update_bootloader
|
||||||
umount /update
|
|
||||||
do_cleanup
|
do_cleanup
|
||||||
do_reboot
|
do_reboot
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user