logo

bootstrap-initrd

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

common.sh (747B)


  1. musl_ver="1.2.5-r10"
  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_git20250106-r0"
  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. ALPINE_ARCHES="x86 x86_64 aarch64 armhf riscv64"
  20. if ! test "${EXCLUDE_EXTRAS:+y}" = "y"; then
  21. APKS_main="${APKS_main}
  22. linux-headers-6.12.6-r0.apk"
  23. fi
  24. die() {
  25. echo "[Error] die: ${*}"
  26. exit 1
  27. }