diff options
author | Hans de Goede <hdegoede@redhat.com> | 2009-03-11 09:34:09 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2009-03-12 08:59:19 +0100 |
commit | 2f15ec4b089d4cbcaf9f780fb448312c019d6d72 (patch) | |
tree | 1fecd56402b6f591d01d42f22bc3728137257f01 | |
parent | 287102f78b94038595bb0fb79b5de0ee5d7ca8b6 (diff) | |
download | anaconda-2f15ec4b089d4cbcaf9f780fb448312c019d6d72.tar.gz anaconda-2f15ec4b089d4cbcaf9f780fb448312c019d6d72.tar.xz anaconda-2f15ec4b089d4cbcaf9f780fb448312c019d6d72.zip |
If a pv somehow does not contain a vg_name, do not try to get other vg info
In the anacond udev rules do not execute the 2 import commands which depend
up on the vg_name if we don't have a vg_name.
-rw-r--r-- | 70-anaconda.rules | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/70-anaconda.rules b/70-anaconda.rules index 42ac1d43d..e379a22bd 100644 --- a/70-anaconda.rules +++ b/70-anaconda.rules @@ -22,6 +22,7 @@ ENV{ID_FS_TYPE}=="linux_raid_member", IMPORT{program}="/usr/sbin/mdadm --examine # 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 $tempnode" +ENV{LVM2_VG_NAME}!="?*", GOTO="anaconda_end" 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}" |