From: Daan De Meyer Date: Fri, 15 Mar 2024 13:41:12 +0000 (+0100) Subject: Enable --cache=always for virtiofsd X-Git-Tag: v23~87^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=80737f23f705e70f44c0ae3364a42583c705607d;p=thirdparty%2Fmkosi.git Enable --cache=always for virtiofsd According to the documentation, this can be enabled when virtiofsd has exclusive access to the directory, which is the case for us so let's enable this. --- diff --git a/mkosi/qemu.py b/mkosi/qemu.py index 95079bb51..2a9e28a60 100644 --- a/mkosi/qemu.py +++ b/mkosi/qemu.py @@ -306,6 +306,7 @@ def start_virtiofsd(config: Config, directory: Path, *, uidmap: bool) -> Iterato # qemu's client doesn't seem to support announcing submounts so disable the feature to avoid the warning. "--no-announce-submounts", "--sandbox=chroot", + "--cache=always", ] if not uidmap and want_selinux_relabel(config, directory, fatal=False):