mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-11-04 13:54:48 -05:00
Otherwise dracut does not run on shutdown. Without `need_shutdown` file `/run/initramfs/.need_shutdown` does not get created. And without that file `/usr/lib/dracut/dracut-initramfs-restore`, which itself is started by `/lib/systemd/system/dracut-shutdown.service` does nothing. |
||
|---|---|---|
| .. | ||
| module-setup.sh | ||
| README.md | ||
| wipe-needshutdown.sh | ||
| wipe.sh | ||
Make sure sdmem and dmsetup is part of the initramfs
sudo apt update
sudo apt --no-install-recommends install secure-delete dmsetup
sudo dracut --include /usr/bin/sdmem /bin/sdmem --force