Revision 438f7bfb

b/snf-image-helper/tasks/10FixPartitionTable.in
35 35
    log_error "Device file:\`${SNF_IMAGE_DEV}' is not a block device"
36 36
fi
37 37

  
38
if [ "$SNF_IMAGE_PROPERTY_OSFAMILY" = openbsd ]; then
38
if [[ "$SNF_IMAGE_PROPERTY_OSFAMILY" =~ ^(open|net)bsd$ ]]; then
39 39
    @scriptsdir@/disklabel.py -d "$($BLOCKDEV --getsz "$SNF_IMAGE_DEV")" -p "$SNF_IMAGE_DEV"
40 40
    # Tell the kernel to recreate the disk partitions.
41 41
    # We cannot use partprobe to do this because partprobe uses BLKPG ioctl
......
47 47
    exit 0
48 48
fi
49 49

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

  
55 50
table=$(get_partition_table "$SNF_IMAGE_DEV")
56 51

  
57 52
if [ $(get_partition_count "$table") -eq 0 ]; then

Also available in: Unified diff