summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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