logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://hacktivis.me/git/make-initrd.git
commit: 735c5da984adb5b2544475a81033a894284ea35e
parent 6febe3794fec8133891a642b48e78eaeb750b9e2
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  1 May 2024 20:16:55 +0200

Allow fetch.sh to download all arches

Diffstat:

Mcommon.sh1-
Mfetch.sh2+-
Mmake-initrd.sh2++
Mmake-root.sh4+++-
4 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/common.sh b/common.sh @@ -12,7 +12,6 @@ APKS_testing=" ALPINE_MIRROR="http://dl-cdn.alpinelinux.org/alpine" # Alpine edge is definitely not a good way to do it but I need TCC with musl and /testing/ means edge-only ALPINE_BRANCH="edge" -ALPINE_ARCH="${ALPINE_ARCH:-x86_64}" # Architectures which alpine supports for tcc (+musl of course) ALPINE_ARCHES="x86 x86_64 aarch64 armhf armv7 riscv64" diff --git a/fetch.sh b/fetch.sh @@ -48,4 +48,4 @@ test -e loksh-7.3.tar.xz || curl -L -o loksh-7.3.tar.xz https://github.com/dimkr cd - -sha512sum -c distfiles.SHA512SUM +sha512sum -c --ignore-missing distfiles.SHA512SUM diff --git a/make-initrd.sh b/make-initrd.sh @@ -8,6 +8,8 @@ WORKDIR="$(realpath "$WORKDIR")" . "$WORKDIR/common.sh" +: ${ALPINE_ARCH:=x86_64} + name_base="initramfs-tcc-${ALPINE_ARCH}" out_base="${WORKDIR}/${name_base}" diff --git a/make-root.sh b/make-root.sh @@ -21,6 +21,8 @@ WORKDIR="$(realpath "$WORKDIR")" . "$WORKDIR/common.sh" +: ${ALPINE_ARCH:=x86_64} + name_base="initramfs-tcc-${ALPINE_ARCH}" out_base="${WORKDIR}/${name_base}" @@ -35,7 +37,7 @@ gen_loksh_tcc_h() { set -e -sha512sum -c distfiles.SHA512SUM +sha512sum -c --ignore-missing distfiles.SHA512SUM if test -e "$out_base"; then rm -fr "$out_base"