Add partial support for NetBSD and OpenBSD
[snf-image] / snf-image-helper / tasks / 20FilesystemResizeUnmounted.in
index 44b77dd..a474aa7 100644 (file)
@@ -45,6 +45,12 @@ if [ -n "$SNF_IMAGE_PROPERTY_DO_SYNC" ]; then
     unset EATMYDATA
 fi
 
+if [[ "$SNF_IMAGE_PROPERTY_OSFAMILY" =~ (net)|(open)bsd ]]; then
+    os=${SNF_IMAGE_PROPERTY_OSFAMILY^[bsd]}
+    warn "File sytem resizing currently not supported for ${os^?}"
+    exit 0
+fi
+
 table=$(get_partition_table "$SNF_IMAGE_DEV")
 partition=$(get_partition_by_num "$table" "$SNF_IMAGE_RESIZE_PART")
 id=$(cut -d: -f1 <<< "$partition")