logo

bootstrap-initrd

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

git.sh (566B)


  1. #!/bin/sh
  2. set -ex
  3. die() {
  4. echo "die: $@"
  5. exit 1
  6. }
  7. command -v muon || die "Run /extras/muon-stage2.sh"
  8. command -v curl || die "Run /extras/tiny-curl.sh"
  9. cd /extras/git-*/
  10. export CC_LD=$CC
  11. # muon-0.5.0 doesn't supports rust_std into project()
  12. ed meson.build <<'EOF'
  13. /rust_std=
  14. s;'rust_std=2018', ;;g
  15. w
  16. q
  17. EOF
  18. muon setup \
  19. -Dbuildtype=debugoptimized \
  20. -Dprefix=/usr \
  21. -Dperl=disabled \
  22. -Dtests=false \
  23. -Dgitweb=disabled \
  24. -Dpcre2=disabled \
  25. -Dcurl=enabled \
  26. -Dexpat=disabled \
  27. -Dgettext=disabled \
  28. build
  29. muon -C build samu
  30. muon -C build install
  31. cd -