From d51a2803a4fb08e542e2debb4b49983066e5aaf4 Mon Sep 17 00:00:00 2001 From: parmentelat Date: Mon, 17 Dec 2018 16:45:23 +0100 Subject: [PATCH] an attempt to get more feedback from a node that fails to boot --- PLC/Methods/GetBootMedium.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/PLC/Methods/GetBootMedium.py b/PLC/Methods/GetBootMedium.py index 83917f1..7b73a93 100644 --- a/PLC/Methods/GetBootMedium.py +++ b/PLC/Methods/GetBootMedium.py @@ -457,8 +457,13 @@ class GetBootMedium(Method): elif tag['tagname'] == 'no-hangcheck': build_sh_spec['kargs'].append('hcheck_reboot0') elif tag['tagname'] == 'systemd-debug': + # build_sh_spec['kargs'].append('systemd.log_level=debug') build_sh_spec['kargs'].append('systemd.log_target=console') + build_sh_spec['kargs'].append( + 'systemd.default_standard_output=journal+console') + build_sh_spec['kargs'].append( + 'systemd.default_standard_error=journal+console') # then options can override tags for option in options: if option == "cramfs": @@ -478,6 +483,11 @@ class GetBootMedium(Method): build_sh_spec['kargs'].append('hcheck_reboot0') elif option == "systemd-debug": build_sh_spec['kargs'].append('systemd.log_level=debug') + build_sh_spec['kargs'].append('systemd.log_target=console') + build_sh_spec['kargs'].append( + 'systemd.default_standard_output=journal+console') + build_sh_spec['kargs'].append( + 'systemd.default_standard_error=journal+console') else: raise PLCInvalidArgument("unknown option {}".format(option)) -- 2.43.0