A proof of concept utility that takes two arguments, a source directory and a destination directory.
The src directory is turned into a lz4hc-squashfs archive and then mounted onto a destination directory with tmpfs overlayed ontop of it to make it writeable.
A possible use is to download a source code repo and then build it, and throw away the tempoary build files.
- Linux Kernel supporting squashfs and overlayfs, and iptables-dev installed
- GCC or Clang
- libc
v=$(curl 'https://api.github.com/repos/whisperos/cladder/tags' 2>&1 | awk '/name/{print $2;}' | sed -e 's/"//g' -e 's/,$//')
curl -L https://github.com/whisperos/cladder/releases/download/${v}/cladder-${v#v}.tar.gz | tar x -
cd cladder-${v#v}
./configure --prefix=/usr CFLAGS="-march=native -mtune=native -O2"
make
sudo make install