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


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