Logo
Explore Help
Sign In
mirrors/security-misc
1
0
Fork 0
You've already forked security-misc
mirror of https://github.com/Kicksecure/security-misc.git synced 2025-07-10 16:01:00 +07:00
Code Issues Packages Projects Releases Wiki Activity
Files
1c51d156494e743c7ad89f76510209a97eef5e45
security-misc/usr/lib/dracut/modules.d/40sdmem-security-misc/wipe-needshutdown.sh

7 lines
147 B
Bash
Raw Normal View History

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
#!/bin/sh
copyright
2022-06-29 15:19:56 -04:00
## Copyright (C) 2012 - 2022 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
## See the file COPYING for copying conditions.
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
need_shutdown
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.1 Page: 4279ms Template: 77ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API