mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-02 08:46:04 -04: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:
parent
4d937f551f
commit
8a072437cc
2 changed files with 4 additions and 0 deletions
|
@ -21,6 +21,7 @@ install() {
|
|||
inst_multiple sdmem
|
||||
inst_multiple dmsetup
|
||||
inst_hook shutdown 40 "$moddir/wipe.sh"
|
||||
inst_hook cleanup 80 "$moddir/wipe-needshutdown.sh"
|
||||
}
|
||||
|
||||
# called by dracut
|
||||
|
|
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
|
Loading…
Add table
Add a link
Reference in a new issue