Add support for GUID partition tables
[snf-image] / snf-image-helper / snf-image-helper.in
index 156b458..afb6ee8 100644 (file)
@@ -20,7 +20,6 @@
 . @commondir@/common.sh
 
 set -e
-set -o pipefail
 
 if [ "x$1" != "x--force" ]; then
     echo "WARNING: Exiting, this command would cause the system to halt." >&2
@@ -76,8 +75,10 @@ trap '{ umount "$target"; }' ERR
 
 if [ -z "$SNF_IMAGE_PROPERTY_EXCLUDE_ALL_TASKS" ]; then
 
+    export SNF_IMAGE_RESIZE_PART="$(get_partition_to_resize "$SNF_IMAGE_DEV")"
+
     if [[ ! "$SNF_IMAGE_PROPERTY_OSFAMILY" =~ ^(linux|windows)$ ]]; then
-        log_error "Supported values for OSFAMILY propertry are: linux|windows"
+        log_error "Supported values for OSFAMILY property are: linux|windows"
     fi
 
     # Redirect standard error to standard output,