mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
rc: run recover prior to resize
This commit is contained in:
parent
46fc7fe3aa
commit
47adafb0ff
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user