2014-05-06 19:01:56 +00:00
|
|
|
Index: os-prober-1.58/common.sh
|
|
|
|
===================================================================
|
|
|
|
--- os-prober-1.58.orig/common.sh
|
|
|
|
+++ os-prober-1.58/common.sh
|
|
|
|
@@ -313,3 +313,13 @@ linux_mount_boot () {
|
|
|
|
|
|
|
|
mountboot="$bootpart $mounted"
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+umount_exec=$(which umount)
|
|
|
|
+umount() {
|
2014-10-25 16:00:32 +00:00
|
|
|
+ if ! $umount_exec $@ 2> /dev/null; then
|
2014-05-06 19:01:56 +00:00
|
|
|
+ error "umount error, retrying after 1 sec"
|
|
|
|
+ sleep 1
|
|
|
|
+ $umount_exec $@
|
|
|
|
+ fi
|
|
|
|
+}
|
|
|
|
+
|