plymouth/scripts
Ray Strode 2a7755febb systemd: Add plymouth-switch-root-initramfs.service to switch back to initramfs on shutdown
Add a plymouth-switch-root-initramfs.service, which will call
"plymouth update-root-fs --new-root-dir=/run/initramfs" to switch back
to the initramfs (when applicable).

Systemd will run this service before plymouthd receives the SIGTERM on
shutdown, so this will cause the plymouthd-fd-escrow helper to run
from the initramfs.

This avoids the plymouthd-fd-escrow helper keeping the rootfs busy.

Changes by Hans de Goede:
- Fix a couple of typos
- Add Conflicts=dracut-shutdown.service to plymouth-switch-root-initramfs.service
  dracut-shutdown.service restores the initramfs when it is _stopped_
  use Conflicts to make sure its ExecStop has run before we do
- Add a check for switching back to the initramfs to on_newroot () and dump
  the debug-buffer before the switch (while we still have access to /var/log).
- Also add plymouth-switch-root-initramfs.service to kexec.target.wants.
  kexec.target.wants uses --mode=shutdown, so the plymouthd-fd-escrow helper
  will run, so we need to switch to the initramfs.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2021-04-06 13:45:41 +02:00
..
bootlog scripts: Add a logrotate file for /var/log/boot.log 2019-10-13 16:46:42 +02:00
default.cfg scripts: change out uncrustify config 2014-05-20 15:16:47 -04:00
keymap-render.py themes: spinner/bgrt: Modify password dialog to match gnome 3.34 changes 2019-10-15 11:33:55 +02:00
Makefile.am scripts: Remove new-object.sh 2021-03-06 10:40:36 +01:00
plymouth-generate-initrd.in generate-initrd: Use pigz if available. 2013-02-12 17:33:19 -05:00
plymouth-populate-initrd.in systemd: Add plymouth-switch-root-initramfs.service to switch back to initramfs on shutdown 2021-04-06 13:45:41 +02:00
plymouth-set-default-theme.in scripts: Use >&2 instead of /dev/stderr 2017-08-24 11:42:24 -04:00
plymouth-update-initrd scripts: plymouth-update-initrd should call dracut -f with no args 2014-01-10 15:55:20 -05:00
plymouth.spec build-goo: Remove vestigial remnants of old GDM integration code. 2020-03-07 00:36:54 +08:00