logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://hacktivis.me/git/bootstrap-initrd.git
commit: 514868e3196ae0ebe3e65571c1a0a353edd79a8c
parent 0f0067b4e4044afa24be45bd38e5fefd9e67933e
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 20 May 2024 23:10:06 +0200

pigz: Remove vendored zopfli

Diffstat:

MREADME.md2+-
Minit.sh7++++++-
Mmake-root.sh2++
3 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md @@ -99,7 +99,7 @@ Simple albeit slightly broken `./configure` script (see patches). ### pigz Simple, needs make + c compiler + zlib. -Note: Might be worth it to de-vendor zopfli. +Note: Vendored zopfli got removed, so no compression beyond -9 Meanwhile: - GNU gzip: ./configure script which requires diff(1) for it's grep sanity check diff --git a/init.sh b/init.sh @@ -71,7 +71,12 @@ build_zlib_libs() { build_pigz() { cd /pigz-*/ - bmake CC=$CC + + # Makefile placeholders for zopfli/deflate.h and zopfli/util.h + touch deflate.h util.h + + bmake CC=$CC ZOP= ZOPFLI= CFLAGS="${CFLAGS} -DNOZOPFLI" + cp -p pigz /bin ln -s pigz /bin/unpigz diff --git a/make-root.sh b/make-root.sh @@ -197,6 +197,8 @@ sed -i \ sed -i -e 's;libwchar.a: fake;libwchar.a:;' heirloom-070715/libwchar/Makefile.mk || die +rm -r pigz-*/zopfli || die + deblob -n | tee /dev/stderr | awk '/detected: /{ print $2 }' | xargs du -bach | sort -h cd "${WORKDIR}"