TEMP_PATH somewhere to store what we need to run
ROOT_SIZE the size of the root logical volume
SWAP_SIZE the size of the swap partition
- ALPINA_SERVER_DIR directory on the boot servers containing alpina
- scripts and support files
BOOT_CD_VERSION A tuple of the current bootcd version
Sets the following variables:
if SWAP_SIZE == "" or SWAP_SIZE == 0:
raise ValueError, "SWAP_SIZE invalid"
- ALPINA_SERVER_DIR= vars["ALPINA_SERVER_DIR"]
- if ALPINA_SERVER_DIR == None:
- raise ValueError, "ALPINA_SERVER_DIR"
-
BOOT_CD_VERSION= vars["BOOT_CD_VERSION"]
if BOOT_CD_VERSION == "":
raise ValueError, "BOOT_CD_VERSION"
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" )