logo

bootstrap-initrd

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

e2fsprogs.sh (397B)


  1. #!/bin/sh
  2. set -ex
  3. die() {
  4. echo "die: $@"
  5. exit 1
  6. }
  7. command -v make || die "Run /extras/make.sh"
  8. cd /extras/e2fsprogs-*/
  9. LD=tcc ./configure --disable-nls --disable-backtrace
  10. # Replace __GNUC_PREREQ calls with 1
  11. ed lib/ext2fs/rbtree.h <<EOF
  12. 101
  13. c
  14. #if 1
  15. .
  16. p
  17. 179
  18. c
  19. #if 1
  20. .
  21. w
  22. q
  23. EOF
  24. make clean
  25. # With pdpmake-2.0.3:
  26. # pdpmake: don't know how to make all
  27. make
  28. make install INSTALL=install
  29. cd -