Skip to contentSkip to conversation

psplash: Avoid mount the psplash tmpfs twice

PATCH In review Kevin Hao 2 participants 2 messages Aug 19, 2019

lore
Share & tools
lore

Kevin Hao

author
#0 lore raw

PATCH 1/1 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/[email protected]/T/#u

---
 meta/recipes-core/psplash/files/psplash-init | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-core/psplash/files/psplash-init +3 -1
index fee23e681cfb..dcb751907f41 100755
@@ -25,7 +25,9 @@ done
 
 export TMPDIR=/mnt/.psplash
 [ -d $TMPDIR ] || mkdir -p $TMPDIR
-mount tmpfs -t tmpfs $TMPDIR -o,size=40k
+if [ ! mountpoint -q $TMPDIR ]; then
+	mount tmpfs -t tmpfs $TMPDIR -o,size=40k
+fi
 
 rotation=0
 if [ -e /etc/rotation ]; then
Signature · 1 line
2.14.4
#1 lore raw

✗ patchtest: failure for psplash: Avoid mount the psplash tmpfs twice

== Series Details ==

Series: psplash: Avoid mount the psplash tmpfs twice
Revision: 1
URL : https://patchwork.openembedded.org/series/19350/
State : failure

== Summary ==

Thank you for submitting this patch series to OpenEmbedded Core. This is an automated response. Several tests have been executed on the proposed series by patchtest resulting in the following failures:

* Patch            psplash: Avoid mount the psplash tmpfs twice
 Issue             Yocto Project bugzilla tag is not correctly formatted [test_bugzilla_entry_format] 
  Suggested fix    Specify bugzilla ID in commit description with format: "[YOCTO #<bugzilla ID>]"

If you believe any of these test results are incorrect, please reply to the mailing list ([email protected]) raising your concerns. Otherwise we would appreciate you correcting the issues and submitting a new version of the patchset if applicable. Please ensure you add/increment the version number when sending the new version (i.e. [PATCH] -> [PATCH v2] -> [PATCH v3] -> ...).

---

Guidelines:     https://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines
Test framework: http://git.yoctoproject.org/cgit/cgit.cgi/patchtest
Test suite:     http://git.yoctoproject.org/cgit/cgit.cgi/patchtest-oe