]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
set SYSTEMD_LOG_LEVEL=debug in workspace cmd when debugging it
authorJoerg Behrmann <behrmann@physik.fu-berlin.de>
Tue, 24 May 2022 11:15:57 +0000 (13:15 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 30 May 2022 11:41:23 +0000 (12:41 +0100)
mkosi/backend.py

index d83bdf773c1682e73568db164d05755b1ebb5351..d7717cce62b697f8ce7d3e24cb98eb45de06ae22 100644 (file)
@@ -667,6 +667,8 @@ def run_workspace_command(
 
     if env:
         nspawn += [f"--setenv={k}={v}" for k, v in env.items()]
+    if "workspace-command" in ARG_DEBUG:
+        nspawn += ["--setenv=SYSTEMD_LOG_LEVEL=debug"]
 
     if nspawn_params:
         nspawn += nspawn_params