Skip to content

nixos-init: handle kernels without module support#447005

Merged
Ma27 merged 1 commit intoNixOS:masterfrom
nikstur:nixos-init-kernel-without-mods
Sep 30, 2025
Merged

nixos-init: handle kernels without module support#447005
Ma27 merged 1 commit intoNixOS:masterfrom
nikstur:nixos-init-kernel-without-mods

Conversation

@nikstur
Copy link
Contributor

@nikstur nikstur commented Sep 28, 2025

Fix #445803

Things done

  • Built on platform:
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Ran nixpkgs-review on this PR. See nixpkgs-review usage.
  • Tested basic functionality of all binary files, usually in ./result/bin/.
  • Nixpkgs Release Notes
    • Package update: when the change is major or breaking.
  • NixOS Release Notes
    • Module addition: when adding a new NixOS module.
    • Module update: when the change is significant.
  • Fits CONTRIBUTING.md, pkgs/README.md, maintainers/README.md and other READMEs.

Add a 👍 reaction to pull requests you find important.

Checks if MODPROBE_PATH exists and only then tries to write to it.
Otherwise it fails and logs that MODPROBE_PATH doesn't exist.

This enables using kernels that do not support loading modules.
@nikstur nikstur force-pushed the nixos-init-kernel-without-mods branch from 19a86e4 to e29ad16 Compare September 28, 2025 21:08
@nixpkgs-ci nixpkgs-ci bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Sep 28, 2025
@Ma27 Ma27 added this pull request to the merge queue Sep 30, 2025
Merged via the queue into NixOS:master with commit d78cc77 Sep 30, 2025
32 of 34 checks passed
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: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

nixos-init: requires a modular kernel

2 participants