diff options
author | David Lehman <dlehman@redhat.com> | 2009-02-23 12:20:52 -0600 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2009-02-23 12:20:52 -0600 |
commit | 715e529c7ae2742ff57f7b9eba055e92e8077d82 (patch) | |
tree | 7d9e62d538ddeb1ccd74b806ad6519c23a596e6e | |
parent | bb5ad8aa8c5e2f4d6234a5b545fd8bea53b560ee (diff) | |
download | anaconda-715e529c7ae2742ff57f7b9eba055e92e8077d82.tar.gz anaconda-715e529c7ae2742ff57f7b9eba055e92e8077d82.tar.xz anaconda-715e529c7ae2742ff57f7b9eba055e92e8077d82.zip |
Add udev rules until device-mapper starts using udev.
-rw-r--r-- | 70-anaconda.rules | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/70-anaconda.rules b/70-anaconda.rules new file mode 100644 index 000000000..b203ed26b --- /dev/null +++ b/70-anaconda.rules @@ -0,0 +1,29 @@ +ACTION!="add|change", GOTO="anaconda_end" +SUBSYSTEM!="block", GOTO="anaconda_end" + +KERNEL!="dm-*", GOTO="anaconda_raid_probe" + +IMPORT{program}="/sbin/dmsetup info -c --nameprefixes --unquoted --rows --noheadings -o name,uuid,suspended,readonly,major,minor,open,tables_loaded -j%M -m%m" +ENV{DM_NAME}!="?*", GOTO="anaconda_end" + +SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}" +ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}" + +ENV{DM_STATE}=="SUSPENDED", GOTO="anaconda_end" + +IMPORT{program}="vol_id --export $tempnode" +OPTIONS="link_priority=-100" +ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}" + +LABEL="anaconda_raid_probe" + +# probe raid metadata of mdraid member devices +ENV{ID_FS_TYPE}=="linux_raid_member", IMPORT{program}="/sbin/mdadm --examine --export $root/%k" + +# probe metadata of LVM2 physical volumes +ENV{ID_FS_TYPE}=="LVM2_member", IMPORT{program}="/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}="/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}="/sbin/lvm lvs --units k --nosuffix --nameprefixes --rows --unquoted --noheadings -olv_name,lv_uuid,lv_size $env{LVM2_VG_NAME}" + +LABEL="anaconda_end" + |