mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -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
@ -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…
Reference in New Issue
Block a user