[blivet 1/2] Run udev settle before umount
Brian C. Lane
bcl at redhat.com
Wed Jun 12 00:07:44 UTC 2013
From: "Brian C. Lane" <bcl at redhat.com>
---
blivet/util.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/blivet/util.py b/blivet/util.py
index 3e51249..9d038cd 100644
--- a/blivet/util.py
+++ b/blivet/util.py
@@ -4,6 +4,8 @@ import selinux
import subprocess
import re
+from udev import udev_settle
+
import logging
log = logging.getLogger("blivet")
program_log = logging.getLogger("program")
@@ -72,6 +74,7 @@ def mount(device, mountpoint, fstype, options=None):
return rc
def umount(mountpoint):
+ udev_settle()
try:
rc = run_program(["umount", mountpoint])
except OSError as e:
--
1.8.1.4
More information about the anaconda-patches
mailing list