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 (513B)


  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. # needs to re-bootstrap to get a muon which uses libpkgconf
  11. ./bootstrap.sh bootstrap
  12. export LD=$CC
  13. ./bootstrap/muon-bootstrap setup \
  14. -Dprefix=/usr \
  15. -Dlibcurl=disabled \
  16. -Dlibarchive=disabled \
  17. -Dlibpkgconf=enabled \
  18. build
  19. ./bootstrap/muon-bootstrap -C build samu
  20. ./bootstrap/muon-bootstrap -C build install
  21. cd -