X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=source%2Fsteps%2FInstallPartitionDisks.py;fp=source%2Fsteps%2FInstallPartitionDisks.py;h=9f7d4c71df27bac9c992f4cef4d12b0492df3ef8;hb=aeb70a4837f09549f86c3f7f5435b466deb05cc6;hp=72ffa9352bc2f100a4a7e541fa1dcbb3251c34cc;hpb=e3af4438ef05b622b72adb2d135f68684ddf7253;p=bootmanager.git 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" )