From 333e934c086d15733073f860a77271e11779a6c1 Mon Sep 17 00:00:00 2001 From: zbarsky-openai Date: Mon, 24 Aug 2026 00:49:36 -0400 Subject: [PATCH] vm: enable inotify in guest kernels Node-based build actions that start a filesystem watcher fail inside the VM: ```text Error: ENOSYS: function not implemented, watch errno: -38 syscall: 'watch' code: 'ENOSYS' ``` The compact kernels use `allnoconfig`, which omits the inotify system calls. Enable `CONFIG_INOTIFY_USER` in both ARM64 and x86_64 kernel configurations; it also selects the required `CONFIG_FSNOTIFY` support. The ARM64 kernel builds and boots, and an unchanged Vite filesystem-watcher test now passes inside the VM. Both resolved architecture configurations contain `CONFIG_INOTIFY_USER=y` and `CONFIG_FSNOTIFY=y`. --- vm/linux.config | 1 + vm/linux_x86_64.config | 1 + 2 files changed, 2 insertions(+) diff --git a/vm/linux.config b/vm/linux.config index 69abcd9..c12dfa8 100644 --- a/vm/linux.config +++ b/vm/linux.config @@ -36,6 +36,7 @@ CONFIG_HYPERV_STORAGE=y CONFIG_HYPERV_VMBUS=y CONFIG_HYPERV_VSOCKETS=y CONFIG_INET=y +CONFIG_INOTIFY_USER=y CONFIG_JBD2=y CONFIG_KALLSYMS=y CONFIG_MEMCG=y diff --git a/vm/linux_x86_64.config b/vm/linux_x86_64.config index 278a71f..1bbcf6f 100644 --- a/vm/linux_x86_64.config +++ b/vm/linux_x86_64.config @@ -33,6 +33,7 @@ CONFIG_FS_MBCACHE=y # CONFIG_FUSE_FS is not set CONFIG_FUTEX=y CONFIG_INET=y +CONFIG_INOTIFY_USER=y CONFIG_JBD2=y CONFIG_KALLSYMS=y CONFIG_KERNEL_LZ4=y