From: Mark Huang Date: Tue, 30 May 2006 02:53:40 +0000 (+0000) Subject: - one second sleep required after wiping partition table on some hardware X-Git-Tag: myplc-0_4-rc1~6 X-Git-Url: http://git.onelab.eu/?p=bootmanager.git;a=commitdiff_plain;h=aeb70a4837f09549f86c3f7f5435b466deb05cc6 - one second sleep required after wiping partition table on some hardware --- diff --git a/source/steps/InstallPartitionDisks.py b/source/steps/InstallPartitionDisks.py index 72ffa93..9f7d4c7 100644 --- a/source/steps/InstallPartitionDisks.py +++ b/source/steps/InstallPartitionDisks.py @@ -304,6 +304,9 @@ 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 ) + ### patch Thierry Parmentelat, required on some hardware + import time + time.sleep(1) utils.sysexec( "pvcreate -fy %s" % part_path, log ) except BootManagerException, e: log.write( "create_lvm_physical_volume failed.\n" )