]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/commitdiff
make.sh: fix tmpfs build on 32bit machines
authorArne Fitzenreiter <arne_f@ipfire.org>
Wed, 18 Sep 2019 16:31:26 +0000 (16:31 +0000)
committerArne Fitzenreiter <arne_f@ipfire.org>
Wed, 18 Sep 2019 16:31:26 +0000 (16:31 +0000)
the inode count of tmpfs defaults on availbable low memory page count
which is too low on 32bit machines

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index e4c5a3a95909490a4eecbd03f254847981edb1ef..bea4f5d6d75062c86c6ab74e9409fc1021b529a4 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -473,7 +473,7 @@ prepareenv() {
 
        if [ "${ENABLE_RAMDISK}" = "on" ]; then
                mkdir -p $BASEDIR/build/usr/src
-               mount -t tmpfs tmpfs -o size=4G,mode=1777 $BASEDIR/build/usr/src
+               mount -t tmpfs tmpfs -o size=4G,nr_inodes=1M,mode=1777 $BASEDIR/build/usr/src
        fi
 
        mkdir -p $BASEDIR/build/usr/src/{cache,config,doc,html,langs,lfs,log,src,ccache}