logo

bootstrap-initrd

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

bootstrap-bash.sh (449B)


  1. #!/bin/sh
  2. set -ex
  3. die() {
  4. echo "die: $@"
  5. exit 1
  6. }
  7. # Also works with bmake, doesn't works with pdpmake
  8. command -v make || die "Run /bootstrap-make.sh"
  9. export MAKE="make"
  10. gzip -d -k /bash-5.1.tar.gz
  11. tar xof /bash-5.1.tar
  12. cd bash-5.1
  13. export LD="tcc"
  14. ./configure --prefix=/usr --disable-nls --without-bash-malloc --disable-profiling
  15. ${MAKE} clean
  16. ${MAKE} SIZE=true
  17. ${MAKE} install MAKEINFO=true INSTALL=install
  18. cd ..
  19. rm -r bash-5.1 /bash-5.1.tar