From: Michael Tremer Date: Tue, 10 Mar 2020 13:26:03 +0000 (+0000) Subject: make.sh: Make /tmp a ramdisk if ramdisks are enabled X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ad853b560e41c3357c4be95a8d7650deb3a1d763;p=people%2Fms%2Fipfire-2.x.git make.sh: Make /tmp a ramdisk if ramdisks are enabled The build system is writing a large amount of temporary file systems that might land on disk or at least in the journal. This change will speed up the build and remove a lot of I/O usage. Signed-off-by: Michael Tremer Signed-off-by: Arne Fitzenreiter --- diff --git a/make.sh b/make.sh index 3a2ffc50b6..01ad0e1235 100755 --- a/make.sh +++ b/make.sh @@ -476,6 +476,9 @@ prepareenv() { if [ "${ENABLE_RAMDISK}" = "on" ]; then mkdir -p $BASEDIR/build/usr/src mount -t tmpfs tmpfs -o size=4G,nr_inodes=1M,mode=1777 $BASEDIR/build/usr/src + + mkdir -p ${BASEDIR}/build/tmp + mount -t tmpfs tmpfs -o size=4G,nr_inodes=1M,mode=1777 ${BASEDIR}/build/tmp fi mkdir -p $BASEDIR/build/usr/src/{cache,config,doc,html,langs,lfs,log,src,ccache}