From: Faiyaz Ahmed Date: Fri, 17 Nov 2006 17:56:34 +0000 (+0000) Subject: Fix for cciss devices. Wrong partition was being quieried when installation was... X-Git-Tag: planetlab-4_0-rc1~15 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=27d9e3ef16bff9214074e88ce76eb686f53f3d81;p=bootmanager.git Fix for cciss devices. Wrong partition was being quieried when installation was being validated, resulting in the lvm trying to recreate a volume. Checks correct partition now. --- diff --git a/source/steps/CheckForNewDisks.py b/source/steps/CheckForNewDisks.py index 0d17cff..9bb9b44 100644 --- a/source/steps/CheckForNewDisks.py +++ b/source/steps/CheckForNewDisks.py @@ -87,10 +87,13 @@ def Run( vars, log ): # this is the lvm partition, if it exists on that device lvm_partition= "%s1" % device - cmd = "pvdisplay %s | grep -q 'planetlab'" % lvm_partition - already_added= utils.sysexec_noerr(cmd, log) - - if already_added: + cciss_lvm_partition= "%sp1" % device + cmd = "pvdisplay %s | grep -q 'planetlab'" + + already_added= utils.sysexec_noerr(cmd % lvm_partition, log) + cciss_already_added= utils.sysexec_noerr(cmd % cciss_lvm_partition, log) + + if already_added or cciss_already_added: log.write( "It appears %s is part of the volume group, continuing.\n" % device ) continue