Skip to content

linuxPackages.yt6801: build with kernelModuleMakeFlags - #577453

Merged
pbsds merged 1 commit into
NixOS:masterfrom
mserajnik:yt6801-module-flags
Oct 24, 2026
Merged

pbsds merged 1 commit into
NixOS:masterfrom
mserajnik:yt6801-module-flags

Conversation

@mserajnik

Copy link
Copy Markdown
Member

Without kernelModuleMakeFlags, the package's own modules_install call neither signs the module nor skips depmod. The output then lacks yt6801.ko.cer and contains a module index of its own (lib/modules/*/modules.*), so a NixOS system with boot.extraModulePackages = [ yt6801 ] fails to build its module tree:

cat: kernel/drivers/net/ethernet/motorcomm/yt6801.ko.cer: No such file or directory

This fixes the yt6801 part of #575192 and #576406. nixos-hardware adds the module for the TUXEDO InfinityBook Pro 14 Gen9 and Gen10 and the Pro 15 Gen10, so those systems are definitely affected.

I tested the following on x86_64-linux:

  • linuxPackages.yt6801 (6.18.58) and linuxPackages_latest.yt6801 (7.3) build, and each output contains yt6801.ko.xz and yt6801.ko.cer and no modules.* files. Before the change, the 7.3 output had no .ko.cer and 10 modules.* files.
  • config.system.modulesTree of a minimal NixOS configuration with linuxPackages_latest and yt6801 in boot.extraModulePackages builds, and its modules.dep lists the module.
  • On a TUXEDO InfinityBook Pro AMD Gen10 running Linux 7.3, the same change (as an overlay on nixos-unstable, plus DEPMOD=true, which the master branch now includes in kernelModuleMakeFlags) loads the module, and eno1 appears.

I used Claude Code (Claude Opus 5.5) to find the cause, make the change, run the tests and draft this PR description (which I ended up using largely as-is, with minor wording changes). I reviewed and tested the change myself. The commit carries the Assisted-by: trailer.

Things done

Without the kernel module make flags, `modules_install` neither signs
the module nor skips depmod. The output then lacks `yt6801.ko.cer` and
contains a module index of its own, so the NixOS module tree fails to
build.

Assisted-by: Claude Code (Claude Opus 5.5)
@nixpkgs-ci
nixpkgs-ci Bot requested a review from 5aaee9 October 22, 2026 17:07
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 12.first-time contribution This PR is the author's first one; please be gentle! llm-assisted Contributions that include code generation with LLMs labels Oct 22, 2026
@5aaee9

5aaee9 commented Oct 22, 2026

Copy link
Copy Markdown
Member

nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 577453
Commit: f19200975c624526f6fefad155674ca8fc33ebb4


x86_64-linux

✅ 9 packages built:
  • linuxKernel.packages.linux_6_1.yt6801
  • linuxPackages.yt6801 (linuxKernel.packages.linux_6_18.yt6801)
  • linuxPackages_xanmod_latest.yt6801 (linuxKernel.packages.linux_xanmod_latest.yt6801, linuxPackages_xanmod_stable.yt6801)
  • linuxPackages_latest.yt6801 (linuxKernel.packages.linux_7_3.yt6801)
  • linuxPackages_zen.yt6801 (linuxKernel.packages.linux_zen.yt6801)
  • linuxPackages_xanmod.yt6801 (linuxKernel.packages.linux_xanmod.yt6801)
  • linuxKernel.packages.linux_6_6.yt6801
  • linuxKernel.packages.linux_7_2.yt6801
  • linuxKernel.packages.linux_6_12.yt6801

@5aaee9 5aaee9 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Diff LGTM

@nixpkgs-ci nixpkgs-ci Bot added 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. labels Oct 22, 2026
@pbsds
pbsds added this pull request to the merge queue Oct 24, 2026
Merged via the queue into NixOS:master with commit de60bcb Oct 24, 2026
30 checks passed
@mserajnik
mserajnik deleted the yt6801-module-flags branch October 24, 2026 21:08
Zebradil added a commit to Zebradil/znix that referenced this pull request Oct 28, 2026
Without them its modules_install runs depmod and skips signing, so the
output carries its own modules.* index, which collides with the kernel's
in the aggregated module tree. Mirrors NixOS/nixpkgs#577453, not yet in
nixos-unstable.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01RgBSQTxWYK7zqk4aB3BjQf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 12.approvals: 1 This PR was reviewed and approved by one person. 12.approved-by: package-maintainer This PR was reviewed and approved by a maintainer listed in any of the changed packages. 12.first-time contribution This PR is the author's first one; please be gentle! llm-assisted Contributions that include code generation with LLMs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants