diff options
author | Kevin Hao <kexin.hao@windriver.com> | 2019-08-19 17:27:15 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-08-21 15:29:02 +0100 |
commit | f45a48887fd5c0e632fb1bb3be8b19fc2402f395 (patch) | |
tree | 82f80f9acde4252a4d7e1fed9da0b37607ce1568 /meta/recipes-core/psplash | |
parent | adac6e9cda6a7306aac8eeee02f57c8158e2fc4c (diff) | |
download | poky-f45a48887fd5c0e632fb1bb3be8b19fc2402f395.tar.gz |
psplash: Avoid mount the psplash tmpfs twice
The /etc/init.d/psplash.sh will be invoked both in boot and
shutdown/reboot. And the psplash tmpfs will be mounted twice. This
will trigger a bug in umount and let the system hang when
shutdown/reboot. I already made a patch [1] to fix the issue in
umount, but there is no reason for the psplash to do the twice mount.
So also fix it.
[Yocto 13461]
[1] https://lore.kernel.org/util-linux/20190819083022.12289-1-kexin.hao@windriver.com/T/#u
(From OE-Core rev: 5cea0448c5c75b9defc5fc2582e9b0c14e26a4e9)
Signed-off-by: Kevin Hao <kexin.hao@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/psplash')
-rwxr-xr-x | meta/recipes-core/psplash/files/psplash-init | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/recipes-core/psplash/files/psplash-init b/meta/recipes-core/psplash/files/psplash-init index fee23e681c..dcb751907f 100755 --- a/meta/recipes-core/psplash/files/psplash-init +++ b/meta/recipes-core/psplash/files/psplash-init | |||
@@ -25,7 +25,9 @@ done | |||
25 | 25 | ||
26 | export TMPDIR=/mnt/.psplash | 26 | export TMPDIR=/mnt/.psplash |
27 | [ -d $TMPDIR ] || mkdir -p $TMPDIR | 27 | [ -d $TMPDIR ] || mkdir -p $TMPDIR |
28 | mount tmpfs -t tmpfs $TMPDIR -o,size=40k | 28 | if [ ! mountpoint -q $TMPDIR ]; then |
29 | mount tmpfs -t tmpfs $TMPDIR -o,size=40k | ||
30 | fi | ||
29 | 31 | ||
30 | rotation=0 | 32 | rotation=0 |
31 | if [ -e /etc/rotation ]; then | 33 | if [ -e /etc/rotation ]; then |