diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2022-11-30 21:00:50 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-12-13 15:23:34 +0000 |
commit | a0614c91a7efc0bc50ec1891a12e524eaa8bce35 (patch) | |
tree | 2f47634980cb923147ead65053b6817f411c41e3 /meta | |
parent | 55f6aabf11bb11e4c8cf3d9b536b7df6539aaf02 (diff) | |
download | poky-a0614c91a7efc0bc50ec1891a12e524eaa8bce35.tar.gz |
psplash: consider the situation of psplash not exist for systemd
In current psplash framework, the psplash might not exist at all.
For example, in case DSITRO is set to nodistro, the psplash does
not exist.
In our psplash recipe, we have:
SPLASH_IMAGES = "file://psplash-poky-img.h;outsuffix=default"
This variable is parsed to if psplash-poky-img.h exists, a package
named psplash-default is created and is added to RDEPENDS:${PN}.
We can see that the psplash-poky-img.h resides in meta-poky,
and in psplash_git.bbappend file in meta-poky, we have:
FILESEXTRAPATHS:prepend:poky := "${THISDIR}/files:"
So this file is only available in case poky distro is used.
To fix this issue, add condition check in the corresponding systemd
services.
(From OE-Core rev: c1d57880c786b3650f29afb89530941797e85560)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
(cherry picked from commit 7a62ff9ed39c179d2b9b0c40f4f8423ced413063)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/psplash/files/psplash-start.service | 1 | ||||
-rw-r--r-- | meta/recipes-core/psplash/files/psplash-systemd.service | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-core/psplash/files/psplash-start.service b/meta/recipes-core/psplash/files/psplash-start.service index 36c2bb38e0..bec9368427 100644 --- a/meta/recipes-core/psplash/files/psplash-start.service +++ b/meta/recipes-core/psplash/files/psplash-start.service | |||
@@ -2,6 +2,7 @@ | |||
2 | Description=Start psplash boot splash screen | 2 | Description=Start psplash boot splash screen |
3 | DefaultDependencies=no | 3 | DefaultDependencies=no |
4 | RequiresMountsFor=/run | 4 | RequiresMountsFor=/run |
5 | ConditionFileIsExecutable=/usr/bin/psplash | ||
5 | 6 | ||
6 | [Service] | 7 | [Service] |
7 | Type=notify | 8 | Type=notify |
diff --git a/meta/recipes-core/psplash/files/psplash-systemd.service b/meta/recipes-core/psplash/files/psplash-systemd.service index 082207f232..e93e3deb35 100644 --- a/meta/recipes-core/psplash/files/psplash-systemd.service +++ b/meta/recipes-core/psplash/files/psplash-systemd.service | |||
@@ -4,6 +4,7 @@ DefaultDependencies=no | |||
4 | After=psplash-start.service | 4 | After=psplash-start.service |
5 | Requires=psplash-start.service | 5 | Requires=psplash-start.service |
6 | RequiresMountsFor=/run | 6 | RequiresMountsFor=/run |
7 | ConditionFileIsExecutable=/usr/bin/psplash | ||
7 | 8 | ||
8 | [Service] | 9 | [Service] |
9 | ExecStart=/usr/bin/psplash-systemd | 10 | ExecStart=/usr/bin/psplash-systemd |