A robust and thoroughly tested Bash script to automatically unlock a LUKS LVM setup using a key inside a USB.
You can read this post to start with:
wget https://raw.githubusercontent.com/filisko/cryptsetup-usb-keyscript/refs/heads/main/src/keyscript.sh
chmod +x keyscript.sh
git clone [email protected]:filisko/cryptsetup-usb-keyscript.git
./install_bashunit.sh
This watches for changes either on the code or in any of the tests.
# watch all tests
./watch.sh tests
# watch one specific test (probably what you want at first)
./watch.sh tests/run.test.sh
This script is used for the GitHub action. It runs all tests.
./tests.sh
This project is licensed under the MIT License (MIT). Please see LICENSE for more information.