]> git.ipfire.org Git - thirdparty/plymouth.git/commitdiff
wip! systemd-units: add unit to switch back to initrd at shutdown
authorRay Strode <rstrode@redhat.com>
Thu, 26 Apr 2018 14:39:50 +0000 (10:39 -0400)
committerRay Strode <rstrode@redhat.com>
Thu, 26 Apr 2018 14:41:22 +0000 (10:41 -0400)
plymouthd currently sticks around on the main filesystem during
shutdown, while shutdown proceeds on the initramfs.

This commit adds a unit to make it jump into the initramfs too.

This is important, so we can run the drm escrow binary from
the initramfs.

systemd-units/plymouth-switch-root-shutdown.service.in [new file with mode: 0644]

diff --git a/systemd-units/plymouth-switch-root-shutdown.service.in b/systemd-units/plymouth-switch-root-shutdown.service.in
new file mode 100644 (file)
index 0000000..8986655
--- /dev/null
@@ -0,0 +1,12 @@
+[Unit]
+Description=Plymouth switch root service
+DefaultDependencies=no
+ConditionPathExists=/etc/initrd-release
+Before=initrd-switch-root.service
+
+[Service]
+Type=oneshot
+ExecStart=-@PLYMOUTH_CLIENT_DIR@/plymouth update-root-fs --new-root-dir=/sysroot
+StandardInput=null
+StandardOutput=null
+StandardError=null