diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-19 14:29:32 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-12-20 07:47:00 +0000 |
commit | 038d364992daa833bbf3eef14443a9e99211564e (patch) | |
tree | 0e86f36e2ae214491580d7cc094594172e63742c | |
parent | e428775da9659a0502cc14ef732d2089260b4416 (diff) | |
download | poky-038d364992daa833bbf3eef14443a9e99211564e.tar.gz |
testimage: Exclude wtmp from target-dumper commands
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.
(From OE-Core rev: 599ac08a6f6fb3f6a89a897c8e06367c63c2f979)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes-recipe/testimage.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes-recipe/testimage.bbclass b/meta/classes-recipe/testimage.bbclass index 7c56fe9674..c6b7a1e142 100644 --- a/meta/classes-recipe/testimage.bbclass +++ b/meta/classes-recipe/testimage.bbclass | |||
@@ -121,7 +121,7 @@ testimage_dump_target () { | |||
121 | netstat -an | 121 | netstat -an |
122 | ip address | 122 | ip address |
123 | # Next command will dump logs from /var/log/ | 123 | # Next command will dump logs from /var/log/ |
124 | find /var/log/ -type f 2>/dev/null -exec echo "====================" \; -exec echo {} \; -exec echo "====================" \; -exec cat {} \; -exec echo "" \; | 124 | find /var/log/ -type f -name !wtmp* 2>/dev/null -exec echo "====================" \; -exec echo {} \; -exec echo "====================" \; -exec cat {} \; -exec echo "" \; |
125 | } | 125 | } |
126 | 126 | ||
127 | testimage_dump_monitor () { | 127 | testimage_dump_monitor () { |