From 9cd5ccf725cc6a4cf5ea201a943bd897a60b369b Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Mon, 22 Jun 2009 18:41:26 -0500
Subject: linhes-config: error out on partition error instead of continuing.

---
 abs/core-testing/LinHES-config/mv_install.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/abs/core-testing/LinHES-config/mv_install.py b/abs/core-testing/LinHES-config/mv_install.py
index 3c3e30d..87fbaae 100755
--- a/abs/core-testing/LinHES-config/mv_install.py
+++ b/abs/core-testing/LinHES-config/mv_install.py
@@ -272,7 +272,8 @@ def create_partitions(diskdevice, size, ptype, startsector):
             geom = parted.Geometry(device=device,  start=newstart,  length=length)
         except:
             logging.info("An error occured,  probably invalid parition size")
-            return
+            error_out("invalid parition size")
+
     #collect device constraint
     constraint = device.getConstraint()
     # new partition
-- 
cgit v0.12

