You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
linux: System.map in kernel.dev makes external modules run depmod, breaking aggregateModules (v4l2loopback) #576406
Since a43236fkernel.dev ships System.map. The kernel's scripts/depmod.sh only skips depmod when System.map is missing, so out-of-tree modules that install through make modules_install INSTALL_MOD_PATH=$out now run depmod and write modules.dep, modules.symbols.bin, modules.alias and so on into their own output.
aggregateModules then fails because those files collide with the kernel's:
pkgs.buildEnv error: two given paths contain a conflicting subpath:
`/nix/store/93n5879v79ljfdhaglr8p4kxndrgmq0d-v4l2loopback-0.15.4/lib/modules/7.2.11/modules.symbols.bin' and
`/nix/store/36c6ybh6gv1mbnfq5n5sbqy2ghbdcgsa-linux-7.2.11-modules/lib/modules/7.2.11/modules.symbols.bin'
v4l2loopback runs sed -i '/depmod/d' Makefile, but that only removes its own depmod call. The kernel's Makefile.modinst still runs DEPMOD:
INSTALL /nix/store/...-v4l2loopback-0.15.4/lib/modules/7.2.11/updates/v4l2loopback.ko
DEPMOD /nix/store/...-v4l2loopback-0.15.4/lib/modules/7.2.11
depmod: WARNING: could not open modules.order at ...
Any other external module that installs through modules_install probably hits the same thing.
boot.extraModulePackages=let
v4l2loopback-workaround =pkgs.runCommand"v4l2loopback-workaround"{}'' subdir=lib/modules/${config.boot.kernelPackages.kernel.version} mkdir -p $out/$subdir cd ${config.boot.kernelPackages.v4l2loopback} for f in *; do if [[ $f =~ ^modules ]]; then continue; fi cp -r $f $out/$subdir/$f done '';in[v4l2loopback-workaround];
I encountered the same issue with linuxPackages_latest.yt6801 on nixos-unstable (02c087f) with Linux 7.3. nixos-hardware's TUXEDO InfinityBook modules add it to boot.extraModulePackages1:
pkgs.buildEnv error: two given paths contain a conflicting subpath:
`/nix/store/...-yt6801-1.0.30-20250430/lib/modules/7.3.0/modules.softdep' and
`/nix/store/...-linux-7.3-modules/lib/modules/7.3.0/modules.softdep'
Footnotes
Note that tuxedo-drivers actually fails earlier, see linuxPackages_latest.tuxedo-drivers: build failure #576266; I only got this far with a local override, and that override's output contains the same modules.* files, so it would collide as well. ↩
pkgs.buildEnv error: two given paths contain a conflicting subpath:
`/nix/store/lhhw73bgwhzpnx8q9mrjmnmvsdqjz82z-VirtualBox-GuestAdditions-7.2.20-6.18.57/lib/modules/6.18.57/modules.softdep' and
`/nix/store/cmp57lyyw6zpvhfm1nczpi3m7ki1pb1k-linux-6.18.57-modules/lib/modules/6.18.57/modules.softdep'
Activity
fxzzi commentedon Oct 20, 2026
i seem to be hitting a similar issue on zenergy too.
dcunited001 commentedon Oct 20, 2026
I'm seeing it as well. Thanks for the explanation
joshuakb2 commentedon Oct 21, 2026
I'm using this workaround:
mserajnik commentedon Oct 21, 2026
I encountered the same issue with
linuxPackages_latest.yt6801on nixos-unstable (02c087f) with Linux 7.3.nixos-hardware's TUXEDO InfinityBook modules add it toboot.extraModulePackages1:Footnotes
Note that
tuxedo-driversactually fails earlier, see linuxPackages_latest.tuxedo-drivers: build failure #576266; I only got this far with a local override, and that override's output contains the samemodules.*files, so it would collide as well. ↩temp fix v4l2loopback kernel module conflict (#125)
temp fix v4l2loopback kernel module conflict (#125)
temp disable obs virtual camera
temp fix v4l2loopback kernel module conflict (#125)
temp fix v4l2loopback kernel module conflict (#125)
b2ag commentedon Oct 21, 2026
Had to use
config.boot.kernelPackages.kernel.modDirVersionto make it work with Linux-Zen.moni-dz commentedon Oct 22, 2026
v4l2loopback users can you try #575861?
nim65s commentedon Oct 22, 2026
Same with virtualbox: