diff options
| author | David Lehman <dlehman@redhat.com> | 2009-10-29 16:21:09 -0500 |
|---|---|---|
| committer | David Lehman <dlehman@redhat.com> | 2009-10-30 11:05:02 -0500 |
| commit | 372bda93fd3e845e3686c04c75bdbf9c19cc149b (patch) | |
| tree | 668873c7660f13132a5f4f5df442bcc6f5c96189 | |
| parent | a4be15fe595f6ca07a3f84107491e4c86841db5b (diff) | |
Call udev_trigger with a "change" action and don't filter out dm devices.
| -rw-r--r-- | storage/__init__.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/storage/__init__.py b/storage/__init__.py index be805f9db..841877a4a 100644 --- a/storage/__init__.py +++ b/storage/__init__.py @@ -71,8 +71,9 @@ def storageInitialize(anaconda): # does not mess with any mdraid sets open("/dev/.in_sysinit", "w") - # XXX I don't understand why I have to do this - udev_trigger(subsystem="block", attr_nomatch="dm/name") + # XXX I don't understand why I have to do this, but this is needed to + # populate the udev db + udev_trigger(subsystem="block", action="change") # Set up the protected partitions list now. if os.path.exists("/dev/live") and \ @@ -520,7 +521,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", attr_nomatch="dm/name") + udev_trigger(subsystem="block", action="change") self.reset() dests = [] |
