Revision 365b2ed3 snf-image-helper/tasks/20FilesystemResizeUnmounted.in

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")

Also available in: Unified diff