diff options
Diffstat (limited to 'udev/11-lvm.rules')
-rw-r--r-- | udev/11-lvm.rules | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/udev/11-lvm.rules b/udev/11-lvm.rules index 8ac6525c..bcec0950 100644 --- a/udev/11-lvm.rules +++ b/udev/11-lvm.rules @@ -8,17 +8,11 @@ # DM_VG_NAME - volume group name # DM_LV_LAYER - logical volume layer (blank if not set) -SUBSYSTEM!="block", GOTO="lvm_end" -KERNEL!="dm-[0-9]*", GOTO="lvm_end" +# "add" event is processed on coldplug only! ACTION!="add|change", GOTO="lvm_end" ENV{DM_UDEV_RULES_VSN}!="?*", GOTO="lvm_end" ENV{DM_UUID}!="LVM-?*", GOTO="lvm_end" - -# Normally, we operate on "change" events only. But when -# coldplugging, there's an "add" event present. We have -# to recognize this and do our actions in this particular -# situation, too. -ACTION=="add", ENV{STARTUP}!="1", GOTO="lvm_end" +ENV{DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG}=="1", GOTO="lvm_end" # Use DM name and split it up into its VG/LV/layer constituents. IMPORT{program}="$env{DM_SBIN_PATH}/dmsetup splitname --nameprefixes --noheadings --rows $env{DM_NAME}" |