psplash: delay the psplash service
PATCH 1/1 psplash: delay the psplash service
psplash starts too early to open /dev/fb0 correctly on some types of machines.
Starting this service until /dev/fb0 is found.
Signed-off-by Wentao Zhang <[email protected]>
--- meta/recipes-core/psplash/files/psplash-start.service | 2 ++ 1 file changed, 2 insertions(+)
meta/recipes-core/psplash/files/psplash-start.service +2 -0
@@ -7,6 +7,8 @@ RequiresMountsFor=/run Type=notify ExecStart=/usr/bin/psplash RemainAfterExit=yes +ExecStartPre=bash -c "while [ ! -e /dev/fb0 ]; do sleep 0.01; done" +TimeoutStartSec=100 [Install] WantedBy=sysinit.target
Signature · 1 line
2.25.1
Hi,
Quoted 14 lines · Wentao Zhang
psplash starts too early to open
/dev/fb0correctly on some types of machines.
Starting this service until/dev/fb0is found.Signed-off-by Wentao Zhang <[email protected]>--- meta/recipes-core/psplash/files/psplash-start.service | 2 ++ 1 file changed, 2 insertions(+)meta/recipes-core/psplash/files/psplash-start.service +0
-0
meta/recipes-core/psplash/files/psplash-start.service RequiresMountsFor=/run · line 11
Quoted 5 lines
meta/recipes-core/psplash/files/psplash-start.service +2
-0@@ -7,6 +7,8 @@ RequiresMountsFor=/run Type=notify ExecStart=/usr/bin/psplash RemainAfterExit=yes +ExecStartPre=bash -c "while [ ! -e /dev/fb0 ]; do sleep 0.01; done" +TimeoutStartSec=100
This isn't correct with systemd. If a .service depends on a device node, just express the dependency:
Requires=dev-fb0.device
After=dev-fb0.device
Cheers,
-Mikko
Quoted 15 lines
meta/recipes-core/psplash/files/psplash-start.service +0
-0[Install] WantedBy=sysinit.targetSignature · 11 lines
2.25.1 -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#99488): https://lists.openembedded.org/g/openembedded-devel/message/99488 Mute This Topic: https://lists.openembedded.org/mt/94886380/7159507 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-