]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
psplash: Do not mount PSPLASH_FIFO_DIR if the env variable is empty
authorFalk Bauer <falkbauer.git@gmail.com>
Thu, 21 Aug 2025 07:09:44 +0000 (09:09 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Aug 2025 16:46:38 +0000 (17:46 +0100)
commit85a5e562c5969c407a222966ccb3170cb41fed2f
treedb25cbb4dc8030cf2abb299ec09aff5b8308c338
parent56a32c0b0294d55e75ea54046fb1508f9ff17e4b
psplash: Do not mount PSPLASH_FIFO_DIR if the env variable is empty

The script file psplash.sh tries to mount the PSPLASH_FIFO_DIR variable.
If the variable is empty, the mountpoint command returns a usage text
(busybox mountpoint here, util-linux mountpoint behaves the same):

BusyBox v1.37.0 () multi-call binary.
Usage: mountpoint [-q] { [-dn] DIR | -x DEVICE } :~# BusyBox v1.37.0
() multi-call binary

The return code with this console output is 0 and the mount command in the
if statement is executed.
Then this mount also fails with an empty mountpoint argument.
The source code of psplash respects an empty PSPLASH_FIFO_DIR variable
(see psplash.c) and makes a fallback to "/run". So the psplash.sh script should
also respect the empty var.

Try to mount the PSPLASH_FIFO_DIR only if the variable is not empty.

Signed-off-by: Falk Bauer <falkbauer.git@gmail.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/recipes-core/psplash/files/psplash-init