Skip to content

Commit

Permalink
Add -f option for umount
Browse files Browse the repository at this point in the history
  • Loading branch information
urpylka committed Feb 13, 2018
1 parent 969aa98 commit 6245d3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions image/image-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ umount_system() {
# TEMPLATE: umount_system $PREFIX_PATH

echo -e "\033[0;31m\033[1m$(date) | Umount recursive dirs: $1\033[0m\033[0m"
umount -R $1
umount -fR $1
echo -e "\033[0;31m\033[1m$(date) | Umount loop-image\033[0m\033[0m"
losetup -d $DEV_IMAGE
}
Expand All @@ -262,7 +262,7 @@ umount_system2() {
# TEMPLATE: umount_system $PREFIX_PATH

echo -e "\033[0;31m\033[1m$(date) | Umount recursive dirs: $1\033[0m\033[0m"
umount -R $1
umount -fR $1
echo -e "\033[0;31m\033[1m$(date) | Umount loop-image\033[0m\033[0m"
losetup -D
}
Expand Down Expand Up @@ -488,4 +488,4 @@ case "$1" in

*)
echo "Enter one of: enter, get_image, resize_fs, publish_image, execute";;
esac
esac

0 comments on commit 6245d3b

Please sign in to comment.