summaryrefslogtreecommitdiffstats
path: root/abs/core/LinHES-config/mv_install.py
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/LinHES-config/mv_install.py')
-rwxr-xr-xabs/core/LinHES-config/mv_install.py5
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()