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.shgit clone [email protected]:filisko/cryptsetup-usb-keyscript.git./install_bashunit.shThis 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.shThis script is used for the GitHub action. It runs all tests.
./tests.shThis project is licensed under the MIT License (MIT). Please see LICENSE for more information.