I installed Debian on my brand new Western Digital external SSD drive. Then I proceeded to distro morph it following the guide (prob should have went with the ISO route) and everything works as intended.
However when I unplug my SSD or it comes unplugged somehow (has happened before) it doesn’t trigger a full shutdown?
Why doesn’t it fully shutdown when unplugged?
I do want to add that also set up LUKS when I installed Debian.
Do I need to create a udev rule that runs a shutdown script (unmount, cryptsetup luksClose, and sync)?
@NTH9R6 I think you might be confusing TAILS and kicksecure. TAILS is the only OS that I know-of that is designed to trigger an emergency shutdown when the USB stick that it’s installed-on is removed:
But, as Patrick pointed-out, probably the easiest way to get your system to shutdown when a USB device ejects is BusKill, which can be installed on debian-based systems:
sudo apt-get install buskill
buskill
But if you prefer to do this with udev, we have a guide on that too: