From: Ray Strode Date: Thu, 26 Apr 2018 14:39:50 +0000 (-0400) Subject: wip! systemd-units: add unit to switch back to initrd at shutdown X-Git-Tag: 0.9.4~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=82b2b096392b9305941b3860dd92b18bce1789f8;p=thirdparty%2Fplymouth.git wip! systemd-units: add unit to switch back to initrd at shutdown 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. --- diff --git a/systemd-units/plymouth-switch-root-shutdown.service.in b/systemd-units/plymouth-switch-root-shutdown.service.in new file mode 100644 index 00000000..89866555 --- /dev/null +++ b/systemd-units/plymouth-switch-root-shutdown.service.in @@ -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