rc: run recover prior to resize

This commit is contained in:
Franco Fichtner 2016-12-03 13:08:45 +01:00
parent 46fc7fe3aa
commit 47adafb0ff

View File

@ -44,6 +44,7 @@ while read FS_PART FS_MNT FS_TYPE FS_MORE; do
FS_DEV=$(glabel status -as | grep ${FS_DEV} | awk 'match($3, /^[a-z]+[0-9]+/) { print substr( $3, RSTART, RLENGTH )}')
if [ "${FS_MNT}" = "/" -a -f ${GROWFS_MARKER} ]; then
# hammertime!
gpart recover ${FS_DEV}
gpart resize -i 1 ${FS_DEV}
growfs -y ${FS_MNT}
fi