diff options
author | David Lehman <dlehman@redhat.com> | 2009-10-29 14:22:05 -0500 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2009-10-30 10:38:51 -0500 |
commit | 080f12b6d4ee86c689d930a3705a7e277f337516 (patch) | |
tree | d800818f272e09e27737e1889b67096f7fe5638b /storage | |
parent | 447db7bf1f6c2fbb682040bc206fe1006fb54234 (diff) | |
download | anaconda-080f12b6d4ee86c689d930a3705a7e277f337516.tar.gz anaconda-080f12b6d4ee86c689d930a3705a7e277f337516.tar.xz anaconda-080f12b6d4ee86c689d930a3705a7e277f337516.zip |
Call udev_trigger with "change", not "add", to populate udev db. (#531052)
The reason this matters is that device-mapper devices' udev rules
don't respond to "add" events.
Diffstat (limited to 'storage')
-rw-r--r-- | storage/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/__init__.py b/storage/__init__.py index 0a9dad0ec..f11ae33b7 100644 --- a/storage/__init__.py +++ b/storage/__init__.py @@ -71,7 +71,7 @@ def storageInitialize(anaconda): open("/dev/.in_sysinit", "w") # XXX I don't understand why I have to do this - udev_trigger(subsystem="block") + udev_trigger(subsystem="block", action="change") # Set up the protected partitions list now. if os.path.exists("/dev/live") and \ @@ -517,7 +517,7 @@ class Storage(object): """ # When a usb is connected from before the start of the installation, # it is not correctly detected. - udev_trigger(subsystem="block") + udev_trigger(subsystem="block", action="change") self.reset() dests = [] |