os-prober patch:
--- 50mounted-tests 2007-11-22 18:15:48.000000000 +0000 +++ /usr/lib/os-probes/50mounted-tests 2008-03-31 04:31:50.773366540 +0000 @@ -32,17 +32,24 @@ if [ -f $test ] && [ -x $test ]; then if $test $partition $tmpmnt $type; then debug "os found by subtest $test" - umount $tmpmnt + if ! umount $tmpmnt ; then # retry once + log "Bad umount after success" + sleep 5 + umount $tmpmnt || true + fi rmdir $tmpmnt || true exit 0 fi fi done - umount $tmpmnt + if ! umount $tmpmnt ; then # retry failure to umount once more + log "Bad umount after failure finding partition type" + sleep 5 + umount $tmpmnt || true + fi break fi done - rmdir $tmpmnt || true
# No tests found anything.
os-prober patch:
--- 50mounted-tests 2007-11-22 18:15:48.000000000 +0000 os-probes/ 50mounted- tests 2008-03-31 04:31:50.773366540 +0000
+++ /usr/lib/
@@ -32,17 +32,24 @@
if [ -f $test ] && [ -x $test ]; then
if $test $partition $tmpmnt $type; then
debug "os found by subtest $test"
- umount $tmpmnt
+ if ! umount $tmpmnt ; then # retry once
+ log "Bad umount after success"
+ sleep 5
+ umount $tmpmnt || true
+ fi
rmdir $tmpmnt || true
exit 0
fi
fi
done
- umount $tmpmnt
+ if ! umount $tmpmnt ; then # retry failure to umount once more
+ log "Bad umount after failure finding partition type"
+ sleep 5
+ umount $tmpmnt || true
+ fi
break
fi
done
-
rmdir $tmpmnt || true
# No tests found anything.