diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-12-07 16:15:32 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-12-07 16:24:34 +0000 |
commit | ad2abf89c364d5ec73fb12af63b053637d99d757 (patch) | |
tree | ec147e252f64caca3a97605c6a5b6c93331c1966 /daemon | |
parent | 4df67f26aef7339ef9690da7becb756c9f3f4eaa (diff) | |
download | libguestfs-ad2abf89c364d5ec73fb12af63b053637d99d757.tar.gz libguestfs-ad2abf89c364d5ec73fb12af63b053637d99d757.tar.xz libguestfs-ad2abf89c364d5ec73fb12af63b053637d99d757.zip |
umount-all: Add udev_settle after unmounting disks.
This helps avoid an error on Ubuntu, but it's not clear if this
is a real solution or just helps by adjusting the timing of some
race condition.
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/mount.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/daemon/mount.c b/daemon/mount.c index ccd07c6b..250656a5 100644 --- a/daemon/mount.c +++ b/daemon/mount.c @@ -324,6 +324,9 @@ do_umount_all (void) free_stringslen (mounts, size); + /* Without this, lvm_remove_all was failing on Ubuntu. */ + udev_settle (); + /* We've unmounted root now, so ... */ root_mounted = 0; |