From: DaanDeMeyer Date: Mon, 11 Aug 2025 13:13:47 +0000 (+0200) Subject: Add debug logging for version reported by systemd tools X-Git-Tag: v26~156 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad4b4d2cbe27844cc2c0fbebd865780408bf70b4;p=thirdparty%2Fmkosi.git Add debug logging for version reported by systemd tools --- diff --git a/mkosi/config.py b/mkosi/config.py index 537d82489..4e0465a8c 100644 --- a/mkosi/config.py +++ b/mkosi/config.py @@ -5873,7 +5873,7 @@ def want_selinux_relabel( def systemd_tool_version(*tool: PathString, sandbox: SandboxProtocol = nosandbox) -> GenericVersion: - return GenericVersion( + version = GenericVersion( run( [*tool, "--version"], stdout=subprocess.PIPE, @@ -5883,3 +5883,7 @@ def systemd_tool_version(*tool: PathString, sandbox: SandboxProtocol = nosandbox .strip("()") .removeprefix("v") ) + + logging.debug(f"Version reported by {tool[-1]} is {version}") + + return version