mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-02-11 10:58:29 -05:00
![Patrick Schleizer](/assets/img/avatar_default.png)
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.
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