Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(#2024502) fix(shutdown): be robust against forced shutdown #20

Merged
merged 1 commit into from
Feb 9, 2022

Commits on Feb 9, 2022

  1. 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
    (cherry picked from commit b9ba3c8)
    
    Resolves: #2024502
    rmetrich authored and lnykryn committed Feb 9, 2022
    Configuration menu
    Copy the full SHA
    7c3a1ec View commit details
    Browse the repository at this point in the history