Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(shutdown): be robust against forced shutdown
When a forced shutdown is issued through sending a burst of Ctrl-Alt-Del keys, systemd sends SIGTERM to all processes. This ends up killing dracut-initramfs-restore as well, preventing the script from detecting that the unpack of the initramfs is incomplete, which later causes a crash to happen when "shutdown" tries to execute from the unpacked initramfs. This fix makes sure dracut-initramfs-restore remains alive to detect the unpack failed (because cpio was killed by systemd too). Refs: * https://bugzilla.redhat.com/show_bug.cgi?id=2023665
- Loading branch information