From: Luca Boccassi Date: Sat, 10 Feb 2024 18:42:01 +0000 (+0000) Subject: run: set HOME to '/' if not set X-Git-Tag: v21~12^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c045b815ddb292b1c7dd56015a1a68a1cae932cb;p=thirdparty%2Fmkosi.git run: set HOME to '/' if not set Avoids warnings when running pkcs11 tools --- diff --git a/mkosi/run.py b/mkosi/run.py index f5a9e0b4e..7be5b9512 100644 --- a/mkosi/run.py +++ b/mkosi/run.py @@ -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: