FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Redhat > Device-mapper Development

 
 
LinkBack Thread Tools
 
Old 05-23-2011, 06:23 PM
Chris Lumens
 
Default Use our existing udev functions in anaconda-cleanup.

---
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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 06:25 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org