]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
run: set HOME to '/' if not set
authorLuca Boccassi <bluca@debian.org>
Sat, 10 Feb 2024 18:42:01 +0000 (18:42 +0000)
committerLuca Boccassi <bluca@debian.org>
Mon, 4 Mar 2024 12:45:31 +0000 (12:45 +0000)
Avoids warnings when running pkcs11 tools

mkosi/run.py

index f5a9e0b4e080827e1bbcca3a5e8691463e75082b..7be5b95126959479ebfb680372d0a65f6b948dd0 100644 (file)
@@ -167,6 +167,9 @@ def run(
     if ARG_DEBUG.get():
         env["SYSTEMD_LOG_LEVEL"] = "debug"
 
+    if "HOME" not in env:
+        env["HOME"] = "/"
+
     if input is not None:
         assert stdin is None  # stdin and input cannot be specified together
     elif stdin is None: