]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
qemu: Remove --posix-acl and add --no-announce-submounts to virtiofsd
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 10 Dec 2023 21:09:55 +0000 (22:09 +0100)
committerJörg Behrmann <behrmann@physik.fu-berlin.de>
Mon, 11 Dec 2023 09:37:35 +0000 (10:37 +0100)
--posix-acl causes an error from virtiofsd saying the client doesn't
support this feature. We also get a warning about announcing submounts
not being supported so let's make sure we disable both features to
avoid these warnings/errors.

mkosi/qemu.py

index d95140ed79bd999967f24e728f3197efe20fb228..c7bfafb8e47f00dc6af4e1b753bfe1b4219c5f9e 100644 (file)
@@ -313,7 +313,8 @@ def start_virtiofsd(directory: Path, *, uidmap: bool) -> Iterator[Path]:
         virtiofsd,
         "--shared-dir", directory,
         "--xattr",
-        "--posix-acl",
+        # qemu's client doesn't seem to support announcing submounts so disable the feature to avoid the warning.
+        "--no-announce-submounts",
     ]
 
     # Map the given user/group to root in the virtual machine for the virtiofs instance to make sure all files