logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>
commit: 732af79cddb56c0689207ce5ac53a088d7789648
parent c8998e9e71d2ccf217aaefc78f71296ffdf73989
Author: fosslinux <fosslinux@aussies.space>
Date:   Mon, 11 Oct 2021 07:53:44 +1100

A small RAM saving in initramfs

Before compiling the large Linux kernel, free up RAM space by removing
old build dirs.

Diffstat:

Msysa/run.sh9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/sysa/run.sh b/sysa/run.sh @@ -225,6 +225,15 @@ build kbd-1.15 build make-3.82 +# Clear up some RAM space +grep '^build' "${SOURCES}/run.sh" | sed "s/build //" | sed "s/ .*$//" | while read -r p ; do + rm -rf "${SOURCES:?}/${p:?}" +done +grep '^pkg=' /after.kaem | sed 's/pkg="//' | sed 's/=$//' | while read -r p ; do + rm -rf "${SOURCES:?}/${p:?}" +done +rm -rf "${SOURCES}/mes" + if [ "${CHROOT}" = False ]; then build kexec-tools-2.0.22