]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Add --expand-environment+no to systemd-run command line
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 13 Jul 2024 06:56:34 +0000 (08:56 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sat, 13 Jul 2024 07:14:48 +0000 (09:14 +0200)
Otherwise systemd will try to expand environment variables in our
command instead of the shell.

mkosi/qemu.py

index 9dc14941e9ea7a9c39a34d7413a5ded5d1fdeadb..1c146fd336c10a0c86cfbc57340037558d4940c9 100644 (file)
@@ -744,6 +744,7 @@ def scope_cmd(
         "--description", description,
         "--scope",
         "--collect",
+        "--expand-environment=no",
         *(["--uid", str(user)] if user is not None else []),
         *(["--gid", str(group)] if group is not None else []),
         *([f"--property={p}" for p in properties]),