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: uninative-1.3~124 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=a0bb649;p=openembedded-core.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 0b6c779dbc..e42c5acce9 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()