From ad0be7297452dd260423ab8da57c317cdc82d611 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Sat, 9 Feb 2013 15:39:24 -0600
Subject: LinHES-conifig: mv_install.py  for the last partition don't go all
 the way to the end.  Gotta leave room for gpt tables.

---
 abs/core/LinHES-config/mv_install.py | 4 ++--
 1 file 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
-- 
cgit v0.12

