]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
make.sh: Remove option to make /usr/src a ramdisk
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 4 Jul 2024 19:16:02 +0000 (19:16 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 22 Jul 2024 15:21:17 +0000 (15:21 +0000)
I am not sure this is helping in any way these days that we have SSDs
everywhere...

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
make.sh

diff --git a/make.sh b/make.sh
index dd58e9578133295acc0de85f2a04a4630157b26a..75b7d71c5625367d7d70fc125d4a23f63cc1eea9 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -474,12 +474,6 @@ prepareenv() {
        mount build_tmp "${BUILD_DIR}/tmp" \
                -t tmpfs -o "nosuid,nodev,strictatime,size=4G,nr_inodes=1M,mode=1777"
 
-       # Optionally make /usr/src a ramdisk for less disk I/O
-       if [ "${ENABLE_RAMDISK}" = "on" ]; then
-               mount build_usr_src "${BUILD_DIR}/usr/src" \
-                       -t tmpfs -o size=8G,nr_inodes=1M,mode=1777
-       fi
-
        # Make all sources and proc available under lfs build
        mount --bind /sys                                       "${BUILD_DIR}/sys"
        mount --bind "${BASEDIR}/cache"         "${BUILD_DIR}/usr/src/cache"
@@ -1845,12 +1839,6 @@ SYSTEM_MEMORY="$(system_memory)"
 # Default settings
 BUILD_ARCH="default"
 CCACHE_CACHE_SIZE="4G"
-ENABLE_RAMDISK="auto"
-
-# Enable only when the host system has 4GB of RAM or more
-if [ ${SYSTEM_MEMORY} -ge 3900 ]; then
-       ENABLE_RAMDISK="on"
-fi
 
 # Load configuration file
 if [ -f .config ]; then