From: Richard Purdie Date: Tue, 19 Dec 2023 14:29:32 +0000 (+0000) Subject: testimage: Exclude wtmp from target-dumper commands X-Git-Tag: yocto-3.1.31~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05d9f9c6b27c0216fa4e349109ef42cf91bb4084;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git 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. Signed-off-by: Richard Purdie (cherry picked from commit 599ac08a6f6fb3f6a89a897c8e06367c63c2f979) Signed-off-by: Steve Sakoman --- diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index b1aef626f79..97e68d94b00 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass @@ -110,7 +110,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_host () {