From ba786dde74e31c7ef77b645dd39adae9f61b0197 Mon Sep 17 00:00:00 2001 From: Vlastimil Holer Date: Wed, 14 Aug 2019 12:19:40 +0200 Subject: [PATCH] F #115: Support disable of grow-rootfs script Closes #115. --- src/etc/one-context.d/loc-05-grow-rootfs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/etc/one-context.d/loc-05-grow-rootfs b/src/etc/one-context.d/loc-05-grow-rootfs index 80d7212..7c54e1e 100755 --- a/src/etc/one-context.d/loc-05-grow-rootfs +++ b/src/etc/one-context.d/loc-05-grow-rootfs @@ -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