diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2011-10-02 20:40:00 +0200 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2011-10-02 20:40:00 +0200 |
commit | 2a991852ade4de5ab6ea355a1f2996edb106d08d (patch) | |
tree | 2f283f9b16d8c4be187104f42bda34a1107a91d4 /backend/modules/init | |
parent | 33971cd8be712ea7042ff6063ee478abaee5cc08 (diff) | |
download | acritoxinstaller-2a991852ade4de5ab6ea355a1f2996edb106d08d.zip acritoxinstaller-2a991852ade4de5ab6ea355a1f2996edb106d08d.tar.gz |
fix estimated min size when using gfxoverlay
Diffstat (limited to 'backend/modules/init')
-rw-r--r-- | backend/modules/init | 3 |
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" } |