diff options
author | James Meyer <james.meyer@operamail.com> | 2013-01-12 02:39:25 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2013-01-12 02:39:25 (GMT) |
commit | 767d6c0306d38a5c3370711a7c0d2185b1b27f75 (patch) | |
tree | 1b7411f09895e10a7fb2205245420ab10711b5e6 /abs/core/LinHES-config/mv_install.py | |
parent | 63ebdd273929a867a2aa9dd40375bdf8a3036a81 (diff) | |
download | linhes_pkgbuild-767d6c0306d38a5c3370711a7c0d2185b1b27f75.zip linhes_pkgbuild-767d6c0306d38a5c3370711a7c0d2185b1b27f75.tar.gz linhes_pkgbuild-767d6c0306d38a5c3370711a7c0d2185b1b27f75.tar.bz2 |
LinHES-config: mv_install, erase both msdos and gpt labels for new installs. If a gpt label is present the install will fail due to the usage of extended partitions
refs #889
Diffstat (limited to 'abs/core/LinHES-config/mv_install.py')
-rwxr-xr-x | abs/core/LinHES-config/mv_install.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/abs/core/LinHES-config/mv_install.py b/abs/core/LinHES-config/mv_install.py index e78c548..812293d 100755 --- a/abs/core/LinHES-config/mv_install.py +++ b/abs/core/LinHES-config/mv_install.py @@ -256,6 +256,9 @@ def blank_table(diskdevice): cmd = "echo w |fdisk %s" %diskdevice runcmd(cmd) + cmd = "parted %s --script -- mklabel msdos" %diskdevice + runcmd(cmd) + logging.debug("parition table after:") cmd = "fdisk -l %s" %diskdevice runcmd(cmd) @@ -263,6 +266,8 @@ def blank_table(diskdevice): def partitions_removeall(diskdevice, label): logging.info(" Removing all partitions for %s %s", label, diskdevice) try: + cmd = "parted %s --script -- mklabel msdos" %diskdevice + runcmd(cmd) device = parted.getDevice(diskdevice) partdisk = parted.Disk(device) partdisk.deleteAllPartitions() |