search for: parted_cmd

Displaying 1 result from an estimated 1 matches for "parted_cmd".

2010 Oct 22
0
[PATCH node] First draft of replacing some of the ovirt-config-* scripts with python equivalents.
...") + return devices + +#ROOTDRIVE = "/dev/sda" +def create_hostvg(): + BOOTDRIVE = "" + log("Creating LVM partition") + global ROOTDRIVE + global HOSTVGDRIVE + global BOOTDRIVE + global RootBackup_end + if ROOTDRIVE == HOSTVGDRIVE: + parted_cmd = "parted %s -s \"mkpart primary ext2 %sM -1\"" % (HOSTVGDRIVE, RootBackup_end) + os.system(parted_cmd) + hostvgpart="3" + elif BOOTDRIVE == HOSTVGDRIVE: + parted_cmd = "parted %s -s \"mkpart primary ext2 %s -1\"" % (HOSTVGDR...