From ff55c8e93e21000008ee5e085f1079ff5bc3f3ae Mon Sep 17 00:00:00 2001 From: phamt Date: Fri, 27 Jan 2012 21:20:52 +0000 Subject: [PATCH] Fixed tags associated with LVM. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11429 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/share/xcat/tools/mkay4z | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xCAT-server/share/xcat/tools/mkay4z b/xCAT-server/share/xcat/tools/mkay4z index f72d803ab..2161343ee 100644 --- a/xCAT-server/share/xcat/tools/mkay4z +++ b/xCAT-server/share/xcat/tools/mkay4z @@ -478,7 +478,7 @@ END for $device_name (sort keys %partitions) { for $lvm_vol_name (sort keys %{$partitions{$device_name}{'lvm'}}) { - print(pad($device_name, 11) . " " . pad($partitions{$device_name}{'lvm'}{$lvm_vol_name}{'name'}, 12) . " " . pad($partitions{$device_name}{'lvm'}{$lvm_vol_name}{'mount'}, 12) . " " . pad($partitions{$device_name}{'lvm'}{$lvm_vol_name}{'size'}, 10)); + print(pad($device_name, 11) . " " . pad($partitions{$device_name}{'lvm'}{$lvm_vol_name}{'name'}, 12) . " " . pad($partitions{$device_name}{'lvm'}{$lvm_vol_name}{'mount'}, 12) . " " . pad($partitions{$device_name}{'lvm'}{$lvm_vol_name}{'size'}, 10) . "\n"); } } } @@ -932,7 +932,7 @@ sub createPartitions { END - if (exists $partitions{$device_name}{'lvm'}) { + if (exists $partitions{$device_name}{'lvm'} && $partitions{$device_name}{'lvm'}) { my %lvm_vols = %{ $partitions{$device_name}{'lvm'} }; foreach my $vol(sort keys %lvm_vols) { # Create section for LVM volume @@ -953,7 +953,7 @@ END END } - } elsif (exists $partitions{$device_name}{'device_lvm'}) { + } elsif (exists $partitions{$device_name}{'device_lvm'} && $partitions{$device_name}{'device_lvm'}) { # Create section for LVM group $xml .= < @@ -988,7 +988,7 @@ END } # Create tail - if (exists $partitions{$device_name}{'device_lvm'}) { + if (exists $partitions{$device_name}{'device_lvm'} && $partitions{$device_name}{'device_lvm'}) { $xml .= < 4M