logo

bootstrap-initrd

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

bootstrap-mdevd.sh (382B)


  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. test -f /usr/lib/libskarnet.so || die "Run /bootstrap-skalibs.sh"
  9. tar xof /mdevd-*.tar.gz
  10. cd mdevd-*/
  11. sed 's;-iquote ;-I;' configure > configure.new
  12. mv -f configure.new configure
  13. chmod +x configure
  14. ./configure --prefix=/usr
  15. make RANLIB=true
  16. make install
  17. cd ..
  18. rm -fr mdevd-*/