Silence first umount try if it failed
This commit is contained in:
parent
8d13ad6c98
commit
b7ed0eefa1
@ -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 $@
|
||||||
|
Loading…
Reference in New Issue
Block a user