fixed LVM udev rules to run not only for dm-* devices
authorHarald Hoyer <harald@redhat.com>
Mon, 13 Jul 2009 10:15:41 +0000 (12:15 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 13 Jul 2009 13:03:10 +0000 (15:03 +0200)
modules.d/90lvm/64-lvm-vol_id.rules
modules.d/90lvm/64-lvm.rules

index d4b5269..4cebb46 100644 (file)
@@ -6,9 +6,8 @@
 
 SUBSYSTEM!="block", GOTO="lvm_end"
 ACTION!="add|change", GOTO="lvm_end"
-KERNEL!="dm-*", GOTO="lvm_end"
 
-IMPORT{program}="vol_id --export $tempnode"
+KERNEL=="dm-*", IMPORT{program}="vol_id --export $tempnode"
 
 ENV{ID_FS_TYPE}=="LVM2_member", RUN+="/bin/sh -c '/sbin/lvm vgscan; /sbin/lvm vgchange -ay'"
 
index 3eddd07..c55887d 100644 (file)
@@ -6,9 +6,8 @@
 
 SUBSYSTEM!="block", GOTO="lvm_end"
 ACTION!="add|change", GOTO="lvm_end"
-KERNEL!="dm-*", GOTO="lvm_end"
 
-IMPORT{program}="/sbin/blkid -o udev -p $tempnode"
+KERNEL=="dm-*", IMPORT{program}="/sbin/blkid -o udev -p $tempnode"
 
 ENV{ID_FS_TYPE}=="LVM2_member", RUN+="/bin/sh -c '/sbin/lvm vgscan; /sbin/lvm vgchange -ay'"