]> git.ipfire.org Git - thirdparty/plymouth.git/commit
src: die during shutdown with everything else wip/fix-remount-failure
authorRay Strode <rstrode@redhat.com>
Fri, 17 Jul 2020 20:06:44 +0000 (16:06 -0400)
committerRay Strode <rstrode@redhat.com>
Mon, 20 Jul 2020 19:48:31 +0000 (15:48 -0400)
commit00df82fea8f7e6c6e441e30166191fdd682e328f
tree812644bdcdda86aa011bae6fea11575ecb1f9a59
parentab986a95824e2a701a77dd9405d411a5c022c613
src: die during shutdown with everything else

plymouthd currently avoids getting killed at shutdown.  This causes
filesystems to fail to remount read-only in some cases.

This commit changes things up so that plymouthd dies with everyone else,
but spawns a process to hold open the drm device that can keep the splash
up until the very end.

In order to keep this process alive until the very end, it gets run
from within the initramfs (if available).  This requires adding service
files to jump back into the initramfs at shutdown
12 files changed:
configure.ac
scripts/plymouth-populate-initrd.in
src/Makefile.am
src/main.c
src/plugins/renderers/drm/Makefile.am
src/plugins/renderers/drm/plugin.c
src/plymouthd-drm-escrow.c [new file with mode: 0644]
systemd-units/Makefile.am
systemd-units/plymouth-halt.service.in
systemd-units/plymouth-poweroff.service.in
systemd-units/plymouth-reboot.service.in
systemd-units/plymouth-switch-root-initramfs.service.in [new file with mode: 0644]