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


  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. tar xof /distfiles/muon-*.tar.gz
  10. cd muon-*/
  11. # needs to re-bootstrap to get a muon which uses libpkgconf
  12. ./bootstrap.sh bootstrap
  13. export LD=$CC
  14. ./bootstrap/muon-bootstrap setup \
  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 ..
  23. rm -r ./muon-*/