X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FInstallPartitionDisks.py;h=fcece5359792bea3479f55f75840111b675e826b;hb=beecc436c7775bb49a332e837043aaa8bfe3e88a;hp=4e30475156cef65753739dfe4f67f54337a56719;hpb=9cfce3a05c823f6079e6e7bdfd739238cba4e65c;p=bootmanager.git diff --git a/source/steps/InstallPartitionDisks.py b/source/steps/InstallPartitionDisks.py index 4e30475..fcece53 100644 --- a/source/steps/InstallPartitionDisks.py +++ b/source/steps/InstallPartitionDisks.py @@ -163,7 +163,7 @@ def Run( vars, log ): vg_device_list = vg_device_list + " " + part_path # create an lvm volume group - utils.sysexec( "vgcreate -s16M planetlab %s" % vg_device_list, log) + utils.sysexec( "vgcreate -s32M planetlab %s" % vg_device_list, log) # create swap logical volume utils.sysexec( "lvcreate -L%s -nswap planetlab" % SWAP_SIZE, log ) @@ -304,7 +304,10 @@ def create_lvm_physical_volume( part_path, vars, log ): try: # again, wipe any old data, this time on the partition utils.sysexec( "dd if=/dev/zero of=%s bs=512 count=1" % part_path, log ) - utils.sysexec( "pvcreate -fy %s" % part_path, log ) + ### patch Thierry Parmentelat, required on some hardware + import time + time.sleep(1) + utils.sysexec( "pvcreate -ffy %s" % part_path, log ) except BootManagerException, e: log.write( "create_lvm_physical_volume failed.\n" ) return 0