Skip to content

Commit

Permalink
init: make umount /update conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
MilhouseVH committed Oct 18, 2019
1 parent a00b801 commit e2e05ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/sysutils/busybox/scripts/init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e2e05ad

Please sign in to comment.