diff options
author | James Meyer <james.meyer@operamail.com> | 2014-01-05 21:34:14 (GMT) |
---|---|---|
committer | James Meyer <james.meyer@operamail.com> | 2014-01-05 21:34:14 (GMT) |
commit | b41855ed0f9cd489fe3d9af1acd6e6b2fd80e922 (patch) | |
tree | c789fa79e1eac363e8f5e25491e4f3603c37ed47 /abs/core/LinHES-config/mv_install.py | |
parent | df4d86040c76eabf0a13048079c621ac84963728 (diff) | |
download | linhes_pkgbuild-b41855ed0f9cd489fe3d9af1acd6e6b2fd80e922.zip linhes_pkgbuild-b41855ed0f9cd489fe3d9af1acd6e6b2fd80e922.tar.gz linhes_pkgbuild-b41855ed0f9cd489fe3d9af1acd6e6b2fd80e922.tar.bz2 |
LinHES-config:add call to sfdisk to set the active partition
refs #952
Diffstat (limited to 'abs/core/LinHES-config/mv_install.py')
-rwxr-xr-x | abs/core/LinHES-config/mv_install.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/abs/core/LinHES-config/mv_install.py b/abs/core/LinHES-config/mv_install.py index ba88ade..fe4a395 100755 --- a/abs/core/LinHES-config/mv_install.py +++ b/abs/core/LinHES-config/mv_install.py @@ -506,6 +506,15 @@ def partition_disk(): else: create_partitions_gpt(datadisk, start_sector, hostoptions["datasize"], "primary") + #set active + logging.debug("setting active partition for mbr") + + cmd = "parted %s set 1 boot on" %rootdisk + runcmd(cmd) + + cmd = "sfdisk --force -A1 %s" %rootdisk + runcmd(cmd) + logging.debug("sleeping for 5 seconds") time.sleep(5) |