logo

bootstrap-initrd

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

bootstrap-lua51.sh (250B)


  1. #!/bin/sh
  2. set -ex
  3. # TODO (need ed / sed -i): https://www.lua.org/tests/lua-5.4.6-tests.tar.gz
  4. tar xof /lua-5.1*.tar.gz
  5. cd lua-5.1*/
  6. bmake -C src all CC="$CC -std=gnu99" SYSCFLAGS="-DLUA_USE_LINUX" RANLIB=true
  7. bmake install
  8. cd ..
  9. rm -fr lua-5.1*/