]> code.ossystems Code Review - openembedded-core.git/commitdiff
psplash: Do mount psplash tmpfs if not mounted
authorTorbjörn Svensson <azoff@svenskalinuxforeningen.se>
Sat, 2 Nov 2019 15:42:39 +0000 (16:42 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 5 Nov 2019 10:36:19 +0000 (10:36 +0000)
The change in 5cea0448c5c75b9defc5fc2582e9b0c14e26a4e9 cases the
following to be printed during boot:
/etc/rcS.d/S00psplash.sh: line 28: [: -q: binary operator expected
and the volume is thus never mounted, neither when invoked during
boot nor shutdown/reboot.

Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/psplash/files/psplash-init

index dcb751907f4170065f16c0dd47c6dfc6aff9c04a..4bee866b0dd4449777976cc6fce98cdab2c97d17 100755 (executable)
@@ -25,7 +25,7 @@ done
 
 export TMPDIR=/mnt/.psplash
 [ -d $TMPDIR ] || mkdir -p $TMPDIR
-if [ ! mountpoint -q $TMPDIR ]; then
+if ! mountpoint -q $TMPDIR; then
        mount tmpfs -t tmpfs $TMPDIR -o,size=40k
 fi