]> git.ipfire.org Git - thirdparty/dracut.git/commit
modules.d: fix udev rules detection of multipath devices
authorBenjamin Marzinski <bmarzins@redhat.com>
Tue, 3 Sep 2019 15:44:36 +0000 (10:44 -0500)
committerDaniel Molkentin <daniel@molkentin.de>
Wed, 4 Sep 2019 11:43:20 +0000 (13:43 +0200)
commit9dd9329f7aab71f17f815d8764c1f0f92a42e650
treebaa1ef8623dc7914d0009764fe732828f489b5ae
parent34360676635ba4c787a858152d531bc2fdc5e82e
modules.d: fix udev rules detection of multipath devices

Starting with the 0.7.7 release of the multipath tools, the multipath
udev rules always set a value in ENV{DM_MULTIPATH_DEVICE_PATH} for any
device that multipath scans. A value of 0 means that the device is not
claimed by multipath, and a value of 1 means that it is. Because of
this, udev rules that check ENV{DM_MULTIPATH_DEVICE_PATH}=="?*" will
always return True, and act as if every scanned device is claimed by
multipath. Checking ENV{DM_MULTIPATH_DEVICE_PATH}=="1" will work
correctly for both the old and new versions of the multipath tools.
modules.d/90dm/59-persistent-storage-dm.rules
modules.d/90dmraid/61-dmraid-imsm.rules
modules.d/90lvm/64-lvm.rules
modules.d/90mdraid/59-persistent-storage-md.rules
modules.d/90mdraid/65-md-incremental-imsm.rules
modules.d/95udev-rules/59-persistent-storage.rules
modules.d/95udev-rules/61-persistent-storage.rules