From: Aníbal Limón Date: Wed, 27 Jul 2016 22:40:40 +0000 (-0500) Subject: classes/testimage: When image is systemd, enable debug log level X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~24831 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0bb64973e767c3b8e0bae18ee84ed92693922f0;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git classes/testimage: When image is systemd, enable debug log level In order to get more information about systemd boot process to be able to debug random failures due to high I/O. [YOCTO #9299] Signed-off-by: Aníbal Limón Signed-off-by: Ross Burton --- diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 0b6c779dbca..e42c5acce96 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass @@ -144,7 +144,10 @@ def testimage_main(d): tc.extract_packages() target.deploy() try: - target.start() + bootparams = None + if d.getVar('VIRTUAL-RUNTIME_init_manager', '') == 'systemd': + bootparams = 'systemd.log_level=debug systemd.log_target=console' + target.start(extra_bootparams=bootparams) starttime = time.time() result = tc.runTests() stoptime = time.time()