summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/psplash/files
diff options
context:
space:
mode:
authorStefan Agner <stefan.agner@toradex.com>2020-01-22 14:20:24 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-02-25 10:41:22 +0000
commit9ae26cfeea354039c1bdb42fb7289be55115681d (patch)
treeeeddb1f02e41487e4312247e73c6f2216fe8c459 /meta/recipes-core/psplash/files
parent6c43f76248b5c37ce213667cb794ff81901cc3b1 (diff)
downloadpoky-9ae26cfeea354039c1bdb42fb7289be55115681d.tar.gz
psplash: add systemd support
Make use of the recently added systemd support in psplash. The utility psplash-systemd communicates boot progress to the splash screen. The splash is disabled once systemd consideres the system fully booted (progress is at 1.0). Note that this can take a while if systemd is stuck on a failing unit. This change adds two systemd services. One service starts psplash itself (psplash-start.service) and the second service starts the helper utility psplash-systemd (psplash-systemd.service). The units are written such that psplash-systemd.service can be used indepenendenly. This is useful when starting psplash in initramfs (not using systemd). (From OE-Core rev: b4063b16082604554c7c19b369ebddd27061f372) Signed-off-by: Stefan Agner <stefan.agner@toradex.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/psplash/files')
-rwxr-xr-xmeta/recipes-core/psplash/files/psplash-init8
-rw-r--r--meta/recipes-core/psplash/files/psplash-start.service10
-rw-r--r--meta/recipes-core/psplash/files/psplash-systemd.service10
3 files changed, 24 insertions, 4 deletions
diff --git a/meta/recipes-core/psplash/files/psplash-init b/meta/recipes-core/psplash/files/psplash-init
index 4bee866b0d..f58e043733 100755
--- a/meta/recipes-core/psplash/files/psplash-init
+++ b/meta/recipes-core/psplash/files/psplash-init
@@ -23,10 +23,10 @@ for x in $CMDLINE; do
23 esac 23 esac
24done 24done
25 25
26export TMPDIR=/mnt/.psplash 26export PSPLASH_FIFO_DIR=/mnt/.psplash
27[ -d $TMPDIR ] || mkdir -p $TMPDIR 27[ -d $PSPLASH_FIFO_DIR ] || mkdir -p $PSPLASH_FIFO_DIR
28if ! mountpoint -q $TMPDIR; then 28if ! mountpoint -q $PSPLASH_FIFO_DIR; then
29 mount tmpfs -t tmpfs $TMPDIR -o,size=40k 29 mount tmpfs -t tmpfs $PSPLASH_FIFO_DIR -o,size=40k
30fi 30fi
31 31
32rotation=0 32rotation=0
diff --git a/meta/recipes-core/psplash/files/psplash-start.service b/meta/recipes-core/psplash/files/psplash-start.service
new file mode 100644
index 0000000000..9de8f6321a
--- /dev/null
+++ b/meta/recipes-core/psplash/files/psplash-start.service
@@ -0,0 +1,10 @@
1[Unit]
2Description=Start psplash boot splash screen
3DefaultDependencies=no
4Requires=psplash-systemd.service
5
6[Service]
7ExecStart=/usr/bin/psplash
8
9[Install]
10WantedBy=sysinit.target
diff --git a/meta/recipes-core/psplash/files/psplash-systemd.service b/meta/recipes-core/psplash/files/psplash-systemd.service
new file mode 100644
index 0000000000..e14f42032d
--- /dev/null
+++ b/meta/recipes-core/psplash/files/psplash-systemd.service
@@ -0,0 +1,10 @@
1[Unit]
2Description=Start psplash-systemd progress communication helper
3DefaultDependencies=no
4After=systemd-start.service
5
6[Service]
7ExecStart=/usr/bin/psplash-systemd
8
9[Install]
10WantedBy=sysinit.target