a27a5b
Index: os-prober/common.sh
a27a5b
===================================================================
a27a5b
--- os-prober.orig/common.sh
a27a5b
+++ os-prober/common.sh
a27a5b
@@ -336,3 +336,13 @@ linux_mount_boot () {
a27a5b
 
a27a5b
 	mountboot="$bootpart $mounted"
a27a5b
 }
a27a5b
+
a27a5b
+umount_exec=$(which umount)
a27a5b
+umount() {
a27a5b
+	if ! $umount_exec $@ 2> /dev/null; then
a27a5b
+		error "umount error, retrying after 1 sec"
a27a5b
+		sleep 1
a27a5b
+		$umount_exec $@
a27a5b
+	fi
a27a5b
+}
a27a5b
+