F #115: Support disable of grow-rootfs script

Closes #115.
pull/182/head
Vlastimil Holer 5 years ago
parent 1c6d30c3ad
commit ba786dde74
No known key found for this signature in database
GPG Key ID: EB549BADEFD07C53

@ -2,6 +2,14 @@
set -e
GROW_ROOTFS=${GROW_ROOTFS:-YES}
GROW_ROOTFS=${GROW_ROOTFS^^}
if [ "${GROW_ROOTFS}" != 'YES' ]; then
echo 'Skipped root filesystem growing.' >&2
exit 0
fi
# FreeBSD
if [ -x /etc/rc.d/growfs ]; then
/etc/rc.d/growfs onestart

Loading…
Cancel
Save