]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
Fix lvm on top of dmraid
authorHans de Goede <hdegoede@redhat.com>
Tue, 14 Jul 2009 20:24:41 +0000 (22:24 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 15 Jul 2009 16:27:21 +0000 (18:27 +0200)
The lvm rules were failing to identify PV's on mdraid because
blkid/vol_id has not been run on md raidsets by previous rules.

modules.d/90lvm/64-lvm-vol_id.rules
modules.d/90lvm/64-lvm.rules

index d3a07c1bb56b041d638cbedab8a23d76b2ac9449..faafffa0908e20b974b6ffb77ceb4d6e254adc1d 100644 (file)
@@ -7,7 +7,8 @@
 SUBSYSTEM!="block", GOTO="lvm_end"
 ACTION!="add|change", GOTO="lvm_end"
 
-KERNEL=="dm-*", IMPORT{program}="vol_id --export $tempnode"
+KERNEL=="dm-[0-9]*", IMPORT{program}="vol_id --export $tempnode"
+KERNEL=="md[0-9]*|md/*", IMPORT{program}="vol_id --export $tempnode"
 
 ENV{ID_FS_TYPE}=="LVM2_member", \
     TEST!="/tmp/.lvm_scan-%k", \
index 34030205b461d219b47a3ba6ce745852acfed866..881eacd4d9ccdfa4c51fcfa00fd80ab267c374f9 100644 (file)
@@ -7,7 +7,8 @@
 SUBSYSTEM!="block", GOTO="lvm_end"
 ACTION!="add|change", GOTO="lvm_end"
 
-KERNEL=="dm-*", IMPORT{program}="/sbin/blkid -o udev -p $tempnode"
+KERNEL=="dm-[0-9]*", IMPORT{program}="/sbin/blkid -o udev -p $tempnode"
+KERNEL=="md[0-9]*|md/*", IMPORT{program}="/sbin/blkid -o udev -p $tempnode"
 
 ENV{ID_FS_TYPE}=="LVM2_member", \
     TEST!="/tmp/.lvm_scan-%k", \