logo

bootstrap-initrd

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

e2fsprogs.sh (452B)


  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. tar xof /distfiles/e2fsprogs-*.tar.gz
  9. cd ./e2fsprogs-*/
  10. LD=tcc ./configure --disable-nls --disable-backtrace
  11. # Replace __GNUC_PREREQ calls with 1
  12. ed lib/ext2fs/rbtree.h <<EOF
  13. 101
  14. c
  15. #if 1
  16. .
  17. p
  18. 179
  19. c
  20. #if 1
  21. .
  22. w
  23. q
  24. EOF
  25. make clean
  26. # With pdpmake-2.0.3:
  27. # pdpmake: don't know how to make all
  28. make
  29. make install INSTALL=install
  30. cd ..
  31. rm -fr ./e2fsprogs-*/