. @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
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,