mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-14 09:49:08 +07:00
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.
This commit is contained in:
3
usr/lib/dracut/modules.d/40sdmem-security-misc/wipe-needshutdown.sh
Executable file
3
usr/lib/dracut/modules.d/40sdmem-security-misc/wipe-needshutdown.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
need_shutdown
|
Reference in New Issue
Block a user