Revision de34e7aa snf-image-helper/tasks/10FixPartitionTable.in
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" =~ (net)|(open)bsd ]]; then |
|
39 |
os=${SNF_IMAGE_PROPERTY_OSFAMILY^^[bsd]} |
|
40 |
warn "Partition resizing currently not supported for ${os^?}" |
|
38 |
if [ "$SNF_IMAGE_PROPERTY_OSFAMILY" = openbsd ]; then |
|
39 |
@scriptsdir@/disklabel.py -d "$(blockdev --getsz "$SNF_IMAGE_DEV")" -p "$SNF_IMAGE_DEV" |
|
40 |
exit 0 |
|
41 |
fi |
|
42 |
|
|
43 |
if [ "$SNF_IMAGE_PROPERTY_OSFAMILY" = netbsd ]; then |
|
44 |
warn "Partition resizing currently not supported for NetBSD" |
|
41 | 45 |
exit 0 |
42 | 46 |
fi |
43 | 47 |
|
Also available in: Unified diff