logo

bootstrap-initrd

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

bootstrap-git.sh (358B)


  1. #!/bin/sh
  2. set -ex
  3. die() {
  4. echo "die: $@"
  5. exit 1
  6. }
  7. command -v make || die "Run /bootstrap-make.sh"
  8. command -v curl || die "Run /bootstrap-tiny-curl.sh"
  9. command -v msgfmt || die "Run /bootstrap-gettext-tiny.sh"
  10. tar xof /git-*.tar.gz
  11. cd git-*/
  12. LD=$CC ./configure --prefix=/usr --with-curl
  13. unset MAKE
  14. make
  15. make install INSTALL=install
  16. cd ..
  17. rm -fr git-*/