projects
/
snf-image
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add partial support for NetBSD and OpenBSD
[snf-image]
/
snf-image-helper
/
tasks
/
20FilesystemResizeUnmounted.in
diff --git
a/snf-image-helper/tasks/20FilesystemResizeUnmounted.in
b/snf-image-helper/tasks/20FilesystemResizeUnmounted.in
index
44b77dd
..
a474aa7
100644
(file)
--- a/
snf-image-helper/tasks/20FilesystemResizeUnmounted.in
+++ b/
snf-image-helper/tasks/20FilesystemResizeUnmounted.in
@@
-45,6
+45,12
@@
if [ -n "$SNF_IMAGE_PROPERTY_DO_SYNC" ]; then
unset EATMYDATA
fi
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")
table=$(get_partition_table "$SNF_IMAGE_DEV")
partition=$(get_partition_by_num "$table" "$SNF_IMAGE_RESIZE_PART")
id=$(cut -d: -f1 <<< "$partition")