Revision 365b2ed3

b/snf-image-helper/common.sh
34 34
SGDISK=sgdisk
35 35
GROWFS_UFS=growfs.ufs
36 36
DUMPFS_UFS=dumpfs.ufs
37
GROWFS_OPENBSD=growfs.openbsd
38
DUMPFS_OPENBSD=dumpfs.openbsd
37 39
DATE="date -u" # Time in UTC
38 40
EATMYDATA=eatmydata
39 41
MOUNT="mount -n"
b/snf-image-helper/tasks/20FilesystemResizeUnmounted.in
36 36
    log_error "Device file:\`${SNF_IMAGE_DEV}' is not a block device"
37 37
fi
38 38

  
39
if [ "$SNF_IMAGE_PROPERTY_OSFAMILY" = openbsd ]; then
40
   part="${SNF_IMAGE_DEV}$(@scriptsdir@/disklabel.py --print-last-linux "$SNF_IMAGE_DEV")"
41

  
42
   # If this fails the script will stop
43
   $DUMPFS_OPENBSD "$part" > /dev/null
44

  
45
   $GROWFS_OPENBSD -y "$part"
46
   exit 0
47
fi
48

  
49
if [ "$SNF_IMAGE_PROPERTY_OSFAMILY" = netbsd ]; then
50
    warn "File system resizing currently not supported for NetBSD"
51
    exit 0
52
fi
53

  
39 54
if [ -z "$SNF_IMAGE_RESIZE_PART" ]; then
40 55
    warn "No partition chosen for resize"
41 56
    exit 0
......
45 60
    unset EATMYDATA
46 61
fi
47 62

  
48
if [[ "$SNF_IMAGE_PROPERTY_OSFAMILY" =~ (net)|(open)bsd ]]; then
49
    os=${SNF_IMAGE_PROPERTY_OSFAMILY^^[bsd]}
50
    warn "File sytem resizing currently not supported for ${os^?}"
51
    exit 0
52
fi
53

  
54 63
table=$(get_partition_table "$SNF_IMAGE_DEV")
55 64
partition=$(get_partition_by_num "$table" "$SNF_IMAGE_RESIZE_PART")
56 65
id=$(cut -d: -f1 <<< "$partition")
b/snf-image-host/multistrap.conf
34 34
components=
35 35

  
36 36
[Helper]
37
packages=ufsutils linux-image-3.2.0-4-amd64 python-bcrypt
37
packages=ufsutils linux-image-3.2.0-4-amd64 python-bcrypt openbsd-utils
38 38
# Don't change the parameters below unless you really know what you are doing.
39 39
# The /'s and the empty `componets' variable are needed when working with apt.
40 40
source=http://apt.dev.grnet.gr/

Also available in: Unified diff