The default value when running as root is /var/tmp now so there's no
need to specify --workspace-dir= explicitly anymore. This allows the
workspace directory to be changed in the configuration file in
/etc/mkosi-initrd and /etc/mkosi-addon.
Fixes #3852
cmdline += ["--debug-sandbox"]
if os.getuid() == 0:
- cmdline += [
- "--workspace-dir=/var/tmp",
- "--output-mode=600",
- ]
+ cmdline += ["--output-mode=600"]
cmdline += include_system_config("mkosi-addon")
cmdline += process_crypttab(Path(staging_dir))
if os.getuid() == 0:
cmdline += [
- "--workspace-dir=/var/tmp",
"--package-cache-dir=/var",
"--cache-only=metadata",
]