logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://anongit.hacktivis.me/git/bootstrap-initrd.git/
commit: 06879361fafab19f71e9751adf478616670ba673
parent a28bd78fdfac1762cb71de89bbb3edb915589a21
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri, 25 Apr 2025 06:28:57 +0200

make-root: extras: remove useless files to reduce initrd

Diffstat:

Mmake-root.sh13+++++++++++++
1 file changed, 13 insertions(+), 0 deletions(-)

diff --git a/make-root.sh b/make-root.sh @@ -113,8 +113,21 @@ if ! test "${EXCLUDE_EXTRAS:+y}" = "y"; then tar xof "${WORKDIR}/distfiles/$i" -C ./extras/ || die "Failed extracting $i" done + # remove blob rm ./extras/bearssl-*/T0Comp.exe || die + # Remove useless files to lower the size of the initrd (and so require less ram) + + rm -r ./extras/git-*/t ./extras/git-*/po ./extras/git-*/Documentation/RelNotes || die + + rm -r ./extras/e2fsprogs-*/tests ./extras/e2fsprogs-*/po || die + + # config.status: error: cannot find input file: `tests/Makefile.in' + #rm -r ./extras/tiny-curl-*/tests || die + + # config.status: error: cannot find input file: `po/Makefile.in.in' + #rm -r ./extras/make-*/po || die + mkdir -p ./distfiles for i in $extra_distfiles do