init: make umount /update conditional

This commit is contained in:
MilhouseVH 2019-10-18 16:48:26 +01:00
parent a00b801426
commit e2e05ade82

View File

@ -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