]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Enable --cache=always for virtiofsd
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 15 Mar 2024 13:41:12 +0000 (14:41 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Fri, 15 Mar 2024 13:41:12 +0000 (14:41 +0100)
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.

mkosi/qemu.py

index 95079bb51c6fee33677780edb776f54123522fe5..2a9e28a604dcd914d3eb8b82cb11b447581c3e3f 100644 (file)
@@ -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):