logo

bootstrap-initrd

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

git.sh (452B)


  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. tar xof /distfiles/git-*.tar.gz
  10. cd git-*/
  11. export LD=$CC
  12. muon setup \
  13. -Dprefix=/usr \
  14. -Dperl=disabled \
  15. -Dtests=false \
  16. -Dgitweb=disabled \
  17. -Dpcre2=disabled \
  18. -Dcurl=enabled \
  19. -Dexpat=disabled \
  20. -Dgettext=disabled \
  21. build
  22. muon -C build samu
  23. muon -C build install
  24. cd ..
  25. rm -fr git-*/