logo

bootstrap-initrd

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

bootstrap-make.sh (319B)


  1. #!/bin/sh
  2. set -ex
  3. P="make-4.4.1"
  4. gzip -d -k /${P}.tar.gz
  5. tar xof /${P}.tar
  6. cd ./$P
  7. export LD="tcc"
  8. ./configure --prefix=/usr --disable-nls --disable-dependency-tracking
  9. pdpmake clean
  10. # ARFLAGS as otherwise it passes -o which is invalid
  11. pdpmake ARFLAGS='-r'
  12. pdpmake install INSTALL=install
  13. cd ..
  14. rm -r ./$P /${P}.tar