diff options
author | Hans de Goede <hdegoede@redhat.com> | 2009-03-10 20:20:46 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2009-03-11 09:28:00 +0100 |
commit | 3034f3fd3f2459eabe30f3c9fd8187a3fae75807 (patch) | |
tree | cf3b6433d4aefbf3d2f48e117bd8114800a6cb4f /70-anaconda.rules | |
parent | a50bfe30889e1e7d4820bcdb5cb747453d466ca1 (diff) | |
download | anaconda-3034f3fd3f2459eabe30f3c9fd8187a3fae75807.tar.gz anaconda-3034f3fd3f2459eabe30f3c9fd8187a3fae75807.tar.xz anaconda-3034f3fd3f2459eabe30f3c9fd8187a3fae75807.zip |
Fix anaconda udev rules to not require pre-existing device nodes
The way the anaconda udev rules are currently written, they require
the device nodes to already be present when they run. This is not always
the case (as udev creates the nodes after running the rules). This patch
fixes this, which fixes the recognition of lvm VG's and LV's on iscsi disks.
Diffstat (limited to '70-anaconda.rules')
-rw-r--r-- | 70-anaconda.rules | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/70-anaconda.rules b/70-anaconda.rules index 97d0d2381..42ac1d43d 100644 --- a/70-anaconda.rules +++ b/70-anaconda.rules @@ -18,10 +18,10 @@ ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+ LABEL="anaconda_raid_probe" # probe raid metadata of mdraid member devices -ENV{ID_FS_TYPE}=="linux_raid_member", IMPORT{program}="/usr/sbin/mdadm --examine --export $root/%k" +ENV{ID_FS_TYPE}=="linux_raid_member", IMPORT{program}="/usr/sbin/mdadm --examine --export $tempnode" # probe metadata of LVM2 physical volumes -ENV{ID_FS_TYPE}=="LVM2_member", IMPORT{program}="/usr/sbin/lvm pvs --units k --nosuffix --nameprefixes --rows --unquoted --noheadings -opv_name,pv_uuid,pv_size,vg_name,vg_uuid,pv_pe_count,pv_pe_alloc_count,pe_start $root/%k" +ENV{ID_FS_TYPE}=="LVM2_member", IMPORT{program}="/usr/sbin/lvm pvs --units k --nosuffix --nameprefixes --rows --unquoted --noheadings -opv_name,pv_uuid,pv_size,vg_name,vg_uuid,pv_pe_count,pv_pe_alloc_count,pe_start $tempnode" ENV{ID_FS_TYPE}=="LVM2_member", IMPORT{program}="/usr/sbin/lvm vgs --units k --nosuffix --nameprefixes --rows --unquoted --noheadings -ouuid,size,free,extent_size,extent_count,free_count,pv_count $env{LVM2_VG_NAME}" ENV{ID_FS_TYPE}=="LVM2_member", IMPORT{program}="/usr/sbin/lvm lvs --units k --nosuffix --nameprefixes --rows --unquoted --noheadings -olv_name,lv_uuid,lv_size $env{LVM2_VG_NAME}" |