Commit a2a04353 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Support NetBSD in FilesystemResizeUnmounted task

Add support for resizing UFS file systems of NetBSD OSes
parent b3d5174a
......@@ -36,7 +36,7 @@ if [ ! -b "$SNF_IMAGE_DEV" ]; then
log_error "Device file:\`${SNF_IMAGE_DEV}' is not a block device"
fi
if [ "$SNF_IMAGE_PROPERTY_OSFAMILY" = openbsd ]; then
if [[ "$SNF_IMAGE_PROPERTY_OSFAMILY" =~ ^(open|net)bsd$ ]]; then
bsd_part="$(@scriptsdir@/disklabel.py --get-last-partition "$SNF_IMAGE_DEV")"
if [ "$bsd_part" = "b" ]; then
warn "Last partition is swap space. Resizing ommited"
......@@ -52,11 +52,6 @@ if [ "$SNF_IMAGE_PROPERTY_OSFAMILY" = openbsd ]; then
exit 0
fi
if [ "$SNF_IMAGE_PROPERTY_OSFAMILY" = netbsd ]; then
warn "File system resizing currently not supported for NetBSD"
exit 0
fi
if [ -z "$SNF_IMAGE_RESIZE_PART" ]; then
warn "No partition chosen for resize"
exit 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment