[PATCH] Use our existing udev functions in anaconda-cleanup.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 scripts/anaconda-cleanup |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/scripts/anaconda-cleanup b/scripts/anaconda-cleanup
index 4af96c5..a4771ec 100755
--- a/scripts/anaconda-cleanup
+++ b/scripts/anaconda-cleanup
@@ -40,6 +40,7 @@ pyanaconda.anaconda_log.init()
 
 from pyanaconda import iutil
 
+from pyanaconda.baseudev import udev_settle, udev_trigger
 from pyanaconda.cmdline import InstallInterface
 from pyanaconda.storage import StorageDiscoveryConfig
 from pyanaconda.storage.devicetree import DeviceTree
@@ -82,8 +83,8 @@ for mounted in reversed(open("/proc/mounts").readlines()):
         os.system("umount %s" % mountpoint)
 
 os.system("udevadm control --env=ANACONDA=1")
-os.system("udevadm trigger --subsystem-match block")
-os.system("udevadm settle")
+udev_trigger(subsystem="block", action="change")
+udev_settle()
 devicetree = DeviceTree(intf=intf, conf=storage_config)
 devicetree.populate(cleanupOnly=True)
 devicetree.teardownAll()
-- 
1.7.4.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux