From e2e05ade821c17b8f4d75686ca5dfaa939897800 Mon Sep 17 00:00:00 2001 From: MilhouseVH Date: Fri, 18 Oct 2019 16:48:26 +0100 Subject: [PATCH] init: make umount /update conditional --- packages/sysutils/busybox/scripts/init | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/sysutils/busybox/scripts/init b/packages/sysutils/busybox/scripts/init index 5cd66478d0b..c1587abb10e 100755 --- a/packages/sysutils/busybox/scripts/init +++ b/packages/sysutils/busybox/scripts/init @@ -677,7 +677,9 @@ check_out_of_space() { do_cleanup() { StartProgress spinner "Cleaning up... " - umount /update 2>/dev/null + if mountpoint -q /update; then + umount /update + fi if [ -d $UPDATE_ROOT/.tmp/mnt ]; then if mountpoint -q $UPDATE_ROOT/.tmp/mnt ; then