[os-prober] Silence first umount try if it failed
Hedayat Vatankhah
hedayat at fedoraproject.org
Sat Oct 25 16:16:00 UTC 2014
commit b7ed0eefa19f942ab0d887ce0fc4d776f25643c5
Author: Hedayat Vatankhah <hedayat.fwd at gmail.com>
Date: Sat Oct 25 19:30:32 2014 +0330
Silence first umount try if it failed
os-prober-umount-fix.patch | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/os-prober-umount-fix.patch b/os-prober-umount-fix.patch
index 2f8696f..ca624d3 100644
--- a/os-prober-umount-fix.patch
+++ b/os-prober-umount-fix.patch
@@ -9,7 +9,7 @@ Index: os-prober-1.58/common.sh
+
+umount_exec=$(which umount)
+umount() {
-+ if ! $umount_exec $@; then
++ if ! $umount_exec $@ 2> /dev/null; then
+ error "umount error, retrying after 1 sec"
+ sleep 1
+ $umount_exec $@
More information about the scm-commits
mailing list