logo

bootstrap-initrd

Linux initrd to bootstrap from a small binary seed git clone https://hacktivis.me/git/bootstrap-initrd.git

common.sh (693B)


  1. musl_ver="1.2.5-r6"
  2. APKS_main="
  3. musl-$musl_ver.apk
  4. musl-dev-$musl_ver.apk
  5. musl-libintl-$musl_ver.apk
  6. "
  7. tcc_ver="0.9.27_git20241020-r1"
  8. APKS_testing="
  9. tcc-$tcc_ver.apk
  10. tcc-dev-$tcc_ver.apk
  11. tcc-libs-$tcc_ver.apk
  12. tcc-libs-static-$tcc_ver.apk
  13. "
  14. ALPINE_MIRROR="http://dl-cdn.alpinelinux.org/alpine"
  15. # Alpine edge is definitely not a good way to do it but I need TCC with musl and /testing/ means edge-only
  16. ALPINE_BRANCH="edge"
  17. # Architectures which alpine supports for tcc (+musl of course)
  18. ALPINE_ARCHES="x86 x86_64 aarch64 armhf armv7 riscv64"
  19. if ! test "${EXCLUDE_EXTRAS:+y}" = "y"; then
  20. APKS_main="${APKS_main}
  21. linux-headers-6.6-r1.apk"
  22. fi
  23. die() {
  24. echo "[Error] die: ${*}"
  25. exit 1
  26. }