Silence first umount try if it failed

This commit is contained in:
Hedayat Vatankhah 2014-10-25 19:30:32 +03:30
parent 8d13ad6c98
commit b7ed0eefa1

View File

@ -9,7 +9,7 @@ Index: os-prober-1.58/common.sh
+ +
+umount_exec=$(which umount) +umount_exec=$(which umount)
+umount() { +umount() {
+ if ! $umount_exec $@; then + if ! $umount_exec $@ 2> /dev/null; then
+ error "umount error, retrying after 1 sec" + error "umount error, retrying after 1 sec"
+ sleep 1 + sleep 1
+ $umount_exec $@ + $umount_exec $@