From ad4b4d2cbe27844cc2c0fbebd865780408bf70b4 Mon Sep 17 00:00:00 2001 From: DaanDeMeyer Date: Mon, 11 Aug 2025 15:13:47 +0200 Subject: [PATCH] Add debug logging for version reported by systemd tools --- mkosi/config.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.47.3