logo

bootstrap-initrd

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

iproute2.sh (434B)


  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. cd /extras/iproute2-*/
  9. {
  10. printf 'man_man8 = ['
  11. printf "'%s', " man/man8/*.8
  12. printf ']\n'
  13. } > man/man8/meson.build
  14. ed lib/utils_math.c <<EOF
  15. /math\.h
  16. a
  17. #include <limits.h>
  18. .
  19. w
  20. q
  21. EOF
  22. export CC_LD=$CC
  23. muon setup \
  24. -Dbuildtype=debugoptimized \
  25. -Dprefix=/usr \
  26. build || die
  27. muon -C build samu
  28. muon -C build install
  29. cd -