diff options
| author | Mingli Yu <mingli.yu@windriver.com> | 2022-01-24 14:11:27 +0800 |
|---|---|---|
| committer | Khem Raj <raj.khem@gmail.com> | 2022-01-25 09:13:09 -0800 |
| commit | 7981762d670ea16150811cded2a0168095bf27b8 (patch) | |
| tree | faf36ff4a31b1277273eb4a02cd2cff347f9eaca | |
| parent | a3a89cd0659a80eb6ee54ba32188fba30e5ee769 (diff) | |
| download | meta-openembedded-7981762d670ea16150811cded2a0168095bf27b8.tar.gz | |
plymouth: switch to KillMode=mixed
KillMode=none is deprecated, so we need to stop using it [1].
For now, use `KillMode=mixed` and `IgnoreOnIsolate=true` instead.
In the future, we should change plymouth to be able to exit and
start again without restarting the active animation, but that's
going to require some effort.
[1] https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/123
Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
| -rw-r--r-- | meta-oe/recipes-core/plymouth/files/0001-systemd-switch-to-KillMode-mixed.patch | 43 | ||||
| -rw-r--r-- | meta-oe/recipes-core/plymouth/plymouth_0.9.5.bb | 1 |
2 files changed, 44 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/plymouth/files/0001-systemd-switch-to-KillMode-mixed.patch b/meta-oe/recipes-core/plymouth/files/0001-systemd-switch-to-KillMode-mixed.patch new file mode 100644 index 0000000000..eb1c8db21c --- /dev/null +++ b/meta-oe/recipes-core/plymouth/files/0001-systemd-switch-to-KillMode-mixed.patch | |||
| @@ -0,0 +1,43 @@ | |||
| 1 | From 9d0f8b2e7bc2d1d2b0900fcdf119bb9a2cc4f474 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Ray Strode <rstrode@redhat.com> | ||
| 3 | Date: Tue, 25 Aug 2020 10:49:11 -0400 | ||
| 4 | Subject: [PATCH] systemd: switch to KillMode=mixed | ||
| 5 | |||
| 6 | KillMode=none is deprecated, so we need to stop using it. | ||
| 7 | |||
| 8 | For now, use `KillMode=mixed` and `IgnoreOnIsolate=true` instead. | ||
| 9 | |||
| 10 | In the future, we should change plymouth to be able to exit and | ||
| 11 | start again without restarting the active animation, but that's | ||
| 12 | going to require some effort. | ||
| 13 | |||
| 14 | https://gitlab.freedesktop.org/plymouth/plymouth/-/issues/123 | ||
| 15 | |||
| 16 | Upstream-Status: Backport [https://gitlab.freedesktop.org/plymouth/plymouth/-/commit/9d0f8b2e7bc2d1d2b0900fcdf119bb9a2cc4f474] | ||
| 17 | |||
| 18 | Signed-off-by: Mingli Yu <mingli.yu@windriver.com> | ||
| 19 | --- | ||
| 20 | systemd-units/plymouth-start.service.in | 3 ++- | ||
| 21 | 1 file changed, 2 insertions(+), 1 deletion(-) | ||
| 22 | |||
| 23 | diff --git a/systemd-units/plymouth-start.service.in b/systemd-units/plymouth-start.service.in | ||
| 24 | index 3d00cc6..830a62d 100644 | ||
| 25 | --- a/systemd-units/plymouth-start.service.in | ||
| 26 | +++ b/systemd-units/plymouth-start.service.in | ||
| 27 | @@ -6,11 +6,12 @@ After=systemd-vconsole-setup.service systemd-udev-trigger.service systemd-udevd. | ||
| 28 | Before=systemd-ask-password-plymouth.service | ||
| 29 | ConditionKernelCommandLine=!plymouth.enable=0 | ||
| 30 | ConditionVirtualization=!container | ||
| 31 | +IgnoreOnIsolate=true | ||
| 32 | |||
| 33 | [Service] | ||
| 34 | ExecStart=@PLYMOUTH_DAEMON_DIR@/plymouthd --mode=boot --pid-file=@plymouthruntimedir@/pid --attach-to-session | ||
| 35 | ExecStartPost=-@PLYMOUTH_CLIENT_DIR@/plymouth show-splash | ||
| 36 | Type=forking | ||
| 37 | RemainAfterExit=yes | ||
| 38 | -KillMode=none | ||
| 39 | +KillMode=mixed | ||
| 40 | SendSIGKILL=no | ||
| 41 | -- | ||
| 42 | 2.17.1 | ||
| 43 | |||
diff --git a/meta-oe/recipes-core/plymouth/plymouth_0.9.5.bb b/meta-oe/recipes-core/plymouth/plymouth_0.9.5.bb index e5d8c98195..d096462eed 100644 --- a/meta-oe/recipes-core/plymouth/plymouth_0.9.5.bb +++ b/meta-oe/recipes-core/plymouth/plymouth_0.9.5.bb | |||
| @@ -20,6 +20,7 @@ RPROVIDES:${PN} = "virtual-psplash virtual-psplash-support" | |||
| 20 | SRC_URI = " \ | 20 | SRC_URI = " \ |
| 21 | http://www.freedesktop.org/software/plymouth/releases/${BPN}-${PV}.tar.xz \ | 21 | http://www.freedesktop.org/software/plymouth/releases/${BPN}-${PV}.tar.xz \ |
| 22 | file://0001-Make-full-path-to-systemd-tty-ask-password-agent-con.patch \ | 22 | file://0001-Make-full-path-to-systemd-tty-ask-password-agent-con.patch \ |
| 23 | file://0001-systemd-switch-to-KillMode-mixed.patch \ | ||
| 23 | " | 24 | " |
| 24 | 25 | ||
| 25 | SRC_URI[md5sum] = "8a25d23f3ae732af300a56fa33cacff2" | 26 | SRC_URI[md5sum] = "8a25d23f3ae732af300a56fa33cacff2" |
