4 # Provides: ResizeUnmounted
5 # RunBefore: MountImage
6 # Short-Description: Resize filesystem to use all the available space
10 . @commondir@/common.sh
12 if [ ! -b "$SNF_IMAGE_DEV" ]; then
13 log_error "Device file:\`${SNF_IMAGE_DEV}' is not a block device"
16 if [ -z "$SNF_IMAGE_TYPE" ]; then
17 log_error "Image type does not exist"
20 if [ "$SNF_IMAGE_TYPE" = "extdump" ]; then
21 $RESIZE2FS $SNF_IMAGE_DEV
26 # vim: set sta sts=4 shiftwidth=4 sw=4 et ai :