From 60976b512e6b69b82ca321ef0c83de97556f9693 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Mon, 25 Mar 2024 11:30:48 +0100 Subject: [PATCH] Prefer virtiofsd file handles when running as root instead of making them mandatory We might be invoked as root from a user namespace which won't have access to file handles. --- mkosi/qemu.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mkosi/qemu.py b/mkosi/qemu.py index 16d62f36d..cac410ce6 100644 --- a/mkosi/qemu.py +++ b/mkosi/qemu.py @@ -308,7 +308,7 @@ def start_virtiofsd(config: Config, directory: Path, *, uidmap: bool) -> Iterato "--no-announce-submounts", "--sandbox=chroot", "--cache=always", - f"--inode-file-handles={'mandatory' if os.getuid() == 0 and not uidmap else 'never'}", + f"--inode-file-handles={'prefer' if os.getuid() == 0 and not uidmap else 'never'}", ] if not uidmap and want_selinux_relabel(config, directory, fatal=False): -- 2.47.2