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.

-- 
When hardy's ubiquity is running from a live cd it sometimes hangs, its 
migration assistant gives an incomplete list of userid candidates, and nautilus 
pops up /home/ubuntu windows
https://bugs.launchpad.net/bugs/210620
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to