git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "nixos/modprobe: add boot.initrd.extraModprobeConfig option"

This reverts commit 1c58cdbeed880e99d816c234a954d4cdfc073b6c, since this change was made redundant by 3dc6fab5c9362db2cf079ffa15f2b62b05001747 and in https://github.com/NixOS/nixpkgs/pull/145013 we decided to revert this commit.

commit47b699fe6c417b77575eff93be4b21a8530cf9be authorLuflosi <luflosi@luflosi.de> dateWed 16 Mar 2022, 14:47 (5 years ago) parent5855ff7
4 files changed−33
nixos/doc/manual/from_md/release-notes/rl-2205.section.xml−8 nixos/doc/manual/release-notes/rl-2205.section.md−2 nixos/modules/system/boot/modprobe.nix−20 nixos/modules/system/boot/stage-1.nix−3
nixos/doc/manual/from_md/release-notes/rl-2205.section.xml−8
@@ -1317,14 +1317,6 @@
13171317 files.
13181318 </para>
13191319 </listitem>
1320− <listitem>
1321− <para>
1322− A new option
1323− <literal>boot.initrd.extraModprobeConfig</literal> has been
1324− added which can be used to configure kernel modules that are
1325− loaded in the initrd.
1326− </para>
1327− </listitem>
13281320 <listitem>
13291321 <para>
13301322 <literal>nixos-generate-config</literal> now puts the dhcp
nixos/doc/manual/release-notes/rl-2205.section.md−2
@@ -491,8 +491,6 @@ In addition to numerous new and upgraded packages, this release has the followin
491491
492492- The option `services.duplicati.dataDir` has been added to allow changing the location of duplicati's files.
493493
494−- A new option `boot.initrd.extraModprobeConfig` has been added which can be used to configure kernel modules that are loaded in the initrd.
495−
496494- `nixos-generate-config` now puts the dhcp configuration in `hardware-configuration.nix` instead of `configuration.nix`.
497495
498496- ORY Kratos was updated to version 0.8.3-alpha.1.pre.0, which introduces some breaking changes:
nixos/modules/system/boot/modprobe.nix−20
@@ -34,23 +34,6 @@ with lib;
3434 type = types.lines;
3535 };
3636
37− boot.initrd.extraModprobeConfig = mkOption {
38− default = "";
39− example =
40− ''
41− options zfs zfs_arc_max=1073741824
42− '';
43− description = ''
44− Does exactly the same thing as
45− <option>boot.extraModprobeConfig</option>, except
46− that the generated <filename>modprobe.conf</filename>
47− file is also included in the initrd.
48− This is useful for setting module options for kernel
49− modules that are loaded during early boot in the initrd.
50− '';
51− type = types.lines;
52− };
53−
5437 };
5538
5639
@@ -67,9 +50,6 @@ with lib;
6750 '')}
6851 ${config.boot.extraModprobeConfig}
6952 '';
70− environment.etc."modprobe.d/nixos-initrd.conf".text = ''
71− ${config.boot.initrd.extraModprobeConfig}
72− '';
7353 environment.etc."modprobe.d/debian.conf".source = pkgs.kmod-debian-aliases;
7454
7555 environment.etc."modprobe.d/systemd.conf".source = "${pkgs.systemd}/lib/modprobe.d/systemd.conf";
nixos/modules/system/boot/stage-1.nix−3
@@ -338,9 +338,6 @@ let
338338 { object = pkgs.writeText "mdadm.conf" config.boot.initrd.mdadmConf;
339339 symlink = "/etc/mdadm.conf";
340340 }
341− { object = config.environment.etc."modprobe.d/nixos-initrd.conf".source;
342− symlink = "/etc/modprobe.d/nixos-initrd.conf";
343− }
344341 { object = pkgs.runCommand "initrd-kmod-blacklist-ubuntu" {
345342 src = "${pkgs.kmod-blacklist-ubuntu}/modprobe.conf";
346343 preferLocalBuild = true;