logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://hacktivis.me/git/bootstrap-initrd.git
commit: b8a3a733211f2e7621db8f6861816002da744cf7
parent ca12c53e1f8ab865ac47789e8e4e0db34a2ce21a
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  8 May 2024 13:34:09 +0200

bootstrap-e2fsprogs.sh: Add

Diffstat:

MREADME.md1+
Abootstrap-e2fsprogs.sh37+++++++++++++++++++++++++++++++++++++
Mdistfiles.SHA512SUM1+
Mfetch.sh1+
Mmake-root.sh2++
5 files changed, 42 insertions(+), 0 deletions(-)

diff --git a/README.md b/README.md @@ -133,6 +133,7 @@ Meanwhile: - cacert (from curl.haxx.se): Maybe could be reduced to a handful of CAs (like maybe even just Let's Encrypt) - gettext-tiny: Much smaller replacement to GNU gettext, for git - git: For oasis +- e2fsprogs: In case you need to format some extra storage ## Launching in QEMU ``` diff --git a/bootstrap-e2fsprogs.sh b/bootstrap-e2fsprogs.sh @@ -0,0 +1,37 @@ +#!/bin/sh +set -ex + +die() { + echo "die: $@" + exit 1 +} + +command -v make || die "Run /bootstrap-make.sh" + +tar xof /e2fsprogs-*.tar.gz +cd ./e2fsprogs-*/ + +LD=tcc ./configure --disable-nls --disable-backtrace + +# Replace __GNUC_PREREQ calls with 1 +ed lib/ext2fs/rbtree.h <<EOF +101 +c +#if 1 +. +p +179 +c +#if 1 +. +w +q +EOF + +unset MAKE +make clean +make +make install INSTALL=install + +cd .. +rm -r ./e2fsprogs-*/ diff --git a/distfiles.SHA512SUM b/distfiles.SHA512SUM @@ -3,6 +3,7 @@ f9ed25683cfc6c4abe7f1203a2b82ed101ee4c9e0f9ab60755b6a09c8d1e8e4f64d413624e7bb9c4 50622aee8024b3e0385974a8f446a4b5df0ba494b6133ab91ebbe63c408154b112f62c9df8521f4f1beaf28cdd6e7da178c3334337f6b14c8bced532029d8ba5 distfiles/bmake-20230909.tar.gz 083f5e675d73f3233c7930ebe20425a533feedeaaa9d8cc86831312a6581cefbe6ed0d08d2fa89be81082f2a5abdabca8b3c080bf97218a1bd59dc118a30b9f3 distfiles/bzip2-1.0.8.tar.gz 31f03cc19566d007c4cffdad2ada71d99b4734ad7b13bc4f30d73d321f40cbe13b87a801aa61d9788207a851cc1f95a8af8ac732a372d45edb932f204bce3744 distfiles/cacert-2024-03-11.pem +48499f115ec97e3057244615842f4486a1e55ec9b79626b4df99a0e9a52ab04bad361c229a110b69a8a55ebfec0f75abb1893b6b8bb12dc63c81c2513fda7c2c distfiles/e2fsprogs-1.47.0.tar.gz 0ed85599c8dc4114764b8eeed1e35cde97f11185c3f689e377d020758cc010ba4402febb84dba4cdc78e94fa2cd65614dafade8708ea078db5b2921925c36e78 distfiles/gettext-tiny-0.3.2.tar.gz 50ac7c57fcb9cb684378b9a944913a40cc8c17daf93757e4ffa5889d3ca0787e2f549aca1fa14ae8d416ebab02dd6674ce28d1a27786324ba0474a628e1e6549 distfiles/git-2.45.0.tar.gz 0b30b0f4c4c92a10ee2da263ea44666f445d96bac86ca4afb7bbb50d8278986e4145a7bcdf3ed9f75611bb956e93e16fc0e19874498ce3ae1a00e6fbb4f910c9 distfiles/heirloom-070715.tar.bz2 diff --git a/fetch.sh b/fetch.sh @@ -21,6 +21,7 @@ URLS=" https://curl.se/tiny/tiny-curl-8.4.0.tar.gz https://curl.haxx.se/ca/cacert-2024-03-11.pem https://www.kernel.org/pub/software/scm/git/git-2.45.0.tar.gz + https://mirrors.edge.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v1.47.0/e2fsprogs-1.47.0.tar.gz " WORKDIR="$(dirname "$0")" diff --git a/make-root.sh b/make-root.sh @@ -32,6 +32,7 @@ distfiles=" cacert-2024-03-11.pem gettext-tiny-0.3.2.tar.gz git-2.45.0.tar.gz + e2fsprogs-1.47.0.tar.gz " local_files=" init.sh @@ -51,6 +52,7 @@ local_files=" bootstrap-tiny-curl.sh bootstrap-gettext-tiny.sh bootstrap-git.sh + bootstrap-e2fsprogs.sh " WORKDIR="$(dirname "$0")" WORKDIR="$(realpath "$WORKDIR")"