summaryrefslogtreecommitdiff
path: root/backend/modules/init
diff options
context:
space:
mode:
Diffstat (limited to 'backend/modules/init')
-rw-r--r--backend/modules/init3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/modules/init b/backend/modules/init
index c93cb27..073698e 100644
--- a/backend/modules/init
+++ b/backend/modules/init
@@ -25,6 +25,9 @@ function init_installer()
if [ ! -d /live/filesystem/usr ]; then
[ "$LOOPDEV" ] && mount -o ro "$LOOPDEV" /live/filesystem
fi
+ ESTIMATED_ROOT_MIN=$(df -m "$LOOPDEV" | tail -1 | gawk '{print $3}')
+ grep -q squashfs /proc/mounts && ESTIMATED_ROOT_MIN=$(($ESTIMATED_ROOT_MIN*270/100))
+ export ESTIMATED_ROOT_MIN
cfg_set hostname "${FLL_DISTRO_NAME}Box"
}