wtmp is filled with binary data which the run_serial command can't cope with.
Catting this results in confusion of the serial interface and potentially large
backlogs of data in the buffers which can hang qemu.

Exclude the problematic files from the command.

Signed-off-by: Richard Purdie <[email protected]>
---
 meta/classes-recipe/testimage.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes-recipe/testimage.bbclass 
b/meta/classes-recipe/testimage.bbclass
index 7c56fe9674c..c6b7a1e142f 100644
--- a/meta/classes-recipe/testimage.bbclass
+++ b/meta/classes-recipe/testimage.bbclass
@@ -121,7 +121,7 @@ testimage_dump_target () {
     netstat -an
     ip address
     # Next command will dump logs from /var/log/
-    find /var/log/ -type f 2>/dev/null -exec echo "====================" \; 
-exec echo {} \; -exec echo "====================" \; -exec cat {} \; -exec 
echo "" \;
+    find /var/log/ -type f -name !wtmp* 2>/dev/null -exec echo 
"====================" \; -exec echo {} \; -exec echo "====================" \; 
-exec cat {} \; -exec echo "" \;
 }
 
 testimage_dump_monitor () {
-- 
2.39.2

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#192740): 
https://lists.openembedded.org/g/openembedded-core/message/192740
Mute This Topic: https://lists.openembedded.org/mt/103263017/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to