logo

bootstrap-initrd

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

muon-stage2.sh (546B)


  1. #!/bin/sh
  2. set -ex
  3. die() {
  4. echo "die: $@"
  5. exit 1
  6. }
  7. command -v muon || die "Run /extras/muon-stage1.sh"
  8. pkg-config --exists libpkgconf || die "Run /extras/pkgconf.sh"
  9. cd /extras/muon-*/
  10. export CC_LD=$CC
  11. # needs to re-bootstrap to get a muon which uses libpkgconf
  12. ./bootstrap.sh bootstrap
  13. ./bootstrap/muon-bootstrap setup \
  14. -Dbuildtype=debugoptimized \
  15. -Dprefix=/usr \
  16. -Dlibcurl=disabled \
  17. -Dlibarchive=disabled \
  18. -Dlibpkgconf=enabled \
  19. build
  20. ./bootstrap/muon-bootstrap -C build samu
  21. ./bootstrap/muon-bootstrap -C build install
  22. cd -