387eb4a377
The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/os-prober#2e94fd7ad1e4447a86142639b48e4d5334664d1a
19 lines
400 B
Diff
19 lines
400 B
Diff
Index: os-prober/common.sh
|
|
===================================================================
|
|
--- os-prober.orig/common.sh
|
|
+++ os-prober/common.sh
|
|
@@ -336,3 +336,13 @@ linux_mount_boot () {
|
|
|
|
mountboot="$bootpart $mounted"
|
|
}
|
|
+
|
|
+umount_exec=$(which umount)
|
|
+umount() {
|
|
+ if ! $umount_exec $@ 2> /dev/null; then
|
|
+ error "umount error, retrying after 1 sec"
|
|
+ sleep 1
|
|
+ $umount_exec $@
|
|
+ fi
|
|
+}
|
|
+
|