- one second sleep required after wiping partition table on some hardware
authorMark Huang <mlhuang@cs.princeton.edu>
Tue, 30 May 2006 02:53:40 +0000 (02:53 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Tue, 30 May 2006 02:53:40 +0000 (02:53 +0000)
source/steps/InstallPartitionDisks.py

index 72ffa93..9f7d4c7 100644 (file)
@@ -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" )