]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
vmspawn: pass --log-level=error and --modcaps=-mknod to virtiofsd
authorDaan De Meyer <daan@amutable.com>
Fri, 27 Mar 2026 14:57:40 +0000 (14:57 +0000)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 2 Apr 2026 11:03:36 +0000 (13:03 +0200)
Reduce virtiofsd log noise by setting --log-level=error, and drop
the unnecessary mknod capability with --modcaps=-mknod, matching
mkosi's virtiofsd invocation.

Co-developed-by: Claude Opus 4.6 <noreply@anthropic.com>
src/vmspawn/vmspawn.c

index a93fb0d45604444ad71eb1cb4a9b45aefe05348c..18f2833ae7f310995324d95b235d7d32295b60ce 100644 (file)
@@ -1700,7 +1700,9 @@ static int start_virtiofsd(
                         "--shared-dir", source_uid == FOREIGN_UID_MIN ? "/run/systemd/mount-rootfs" : directory,
                         "--xattr",
                         "--fd", sockstr,
-                        "--no-announce-submounts");
+                        "--no-announce-submounts",
+                        "--log-level=error",
+                        "--modcaps=-mknod");
         if (!argv)
                 return log_oom();