Browse Source
It may happen that dracut-shutdown.service fails, for example on timeout due to very low bandwidth. In such case, for hardening purposes, a new dracut-shutdown-onfailure.service unit doing dracut-shutdown.service cleanup needs to execute to make sure switching root to an incomplete initramfs won't occur later. See also RHBZ #1924587 (https://bugzilla.redhat.com/show_bug.cgi?id=1924587).master
Renaud Métrich
2 years ago
committed by
Jóhann B. Guðmundsson
5 changed files with 19 additions and 0 deletions
@ -0,0 +1,13 @@
@@ -0,0 +1,13 @@
|
||||
# This file is part of dracut. |
||||
# |
||||
# See dracut.bootup(7) for details |
||||
|
||||
[Unit] |
||||
Description=Service executing upon dracut-shutdown failure to perform cleanup |
||||
Documentation=man:dracut-shutdown.service(8) |
||||
DefaultDependencies=no |
||||
|
||||
[Service] |
||||
Type=oneshot |
||||
ExecStart=-/bin/rm /run/initramfs/shutdown |
||||
StandardError=null |
Loading…
Reference in new issue