From: Daan De Meyer Date: Thu, 19 Feb 2026 10:28:55 +0000 (+0100) Subject: nspawn: Add --suppress-sync=yes by default X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c68d09985a07006400e3788cb739b6522e08b61b;p=thirdparty%2Fmkosi.git nspawn: Add --suppress-sync=yes by default We're doing development containers, so making sure changes actually hit the disk isn't all that important. Let's add --suppress-sync=yes by default to speed things up. This prevents systemd-machine-id-commit.service from delaying the boot by 5s every first boot of a container. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index b18c6ae40..2349d6339 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -4260,7 +4260,7 @@ def run_shell(args: Args, config: Config) -> None: if config.output_format.use_outer_compression() and config.compress_output: die(f"Cannot {opname} compressed {config.output_format} images with systemd-nspawn") - cmdline: list[PathString] = ["systemd-nspawn", "--quiet", "--link-journal=no"] + cmdline: list[PathString] = ["systemd-nspawn", "--quiet", "--link-journal=no", "--suppress-sync=yes"] if config.runtime_network == Network.user: cmdline += ["--resolv-conf=auto"]