mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-18 09:15:23 +01:00
A small RAM saving in initramfs
Before compiling the large Linux kernel, free up RAM space by removing old build dirs.
This commit is contained in:
parent
c8998e9e71
commit
732af79cdd
1 changed files with 9 additions and 0 deletions
|
|
@ -225,6 +225,15 @@ build kbd-1.15
|
||||||
|
|
||||||
build make-3.82
|
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
|
if [ "${CHROOT}" = False ]; then
|
||||||
build kexec-tools-2.0.22
|
build kexec-tools-2.0.22
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue