summaryrefslogtreecommitdiffstats
path: root/abs/core
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2013-02-09 21:39:24 (GMT)
committerJames Meyer <james.meyer@operamail.com>2013-02-09 21:39:24 (GMT)
commitad0be7297452dd260423ab8da57c317cdc82d611 (patch)
tree796a0b4d6f40f47a73aa31381b968426fff59196 /abs/core
parent87d4c6f73cdcf411352bea2ff2539105f81f1e84 (diff)
downloadlinhes_pkgbuild-ad0be7297452dd260423ab8da57c317cdc82d611.zip
linhes_pkgbuild-ad0be7297452dd260423ab8da57c317cdc82d611.tar.gz
linhes_pkgbuild-ad0be7297452dd260423ab8da57c317cdc82d611.tar.bz2
LinHES-conifig: mv_install.py for the last partition don't go all the way to the end. Gotta leave room for gpt tables.
Diffstat (limited to 'abs/core')
-rwxr-xr-xabs/core/LinHES-config/mv_install.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/abs/core/LinHES-config/mv_install.py b/abs/core/LinHES-config/mv_install.py
index 812293d..1128571 100755
--- a/abs/core/LinHES-config/mv_install.py
+++ b/abs/core/LinHES-config/mv_install.py
@@ -331,9 +331,9 @@ def create_partitions(diskdevice, size, ptype, startsector):
newstart = 2048
if size == "all":
- logging.debug(" Using the rest of the disk %s", (device.length-newstart) )
+ logging.debug(" Using the rest of the disk %s", (device.length-newstart - 2048) )
try:
- geom = parted.Geometry(device=device, start=newstart, length=(device.length-newstart))
+ geom = parted.Geometry(device=device, start=newstart, length=(device.length-newstart - 2048))
except:
logging.info("* An error occured, probably invalid parition size")
return