security-misc/usr/lib/dracut/modules.d/40sdmem-security-misc
Patrick Schleizer 8a072437cc
ram wipe on shutdown: fix, added need_shutdown hook
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.
2022-06-29 14:13:30 -04:00
..
module-setup.sh ram wipe on shutdown: fix, added need_shutdown hook 2022-06-29 14:13:30 -04:00
README.md minor 2022-06-29 09:38:18 -04:00
wipe-needshutdown.sh ram wipe on shutdown: fix, added need_shutdown hook 2022-06-29 14:13:30 -04:00
wipe.sh verbose 2022-06-29 13:02:53 -04:00

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