File tree 3 files changed +16
-2
lines changed
nixos/modules/system/boot
3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 223
223
'' ;
224
224
} ;
225
225
226
+ boot . initrd . allowMissingModules = mkOption {
227
+ type = types . bool ;
228
+ default = false ;
229
+ description = ''
230
+ Whether the initrd can be built even though modules listed in
231
+ {option}`boot.initrd.kernelModules` or
232
+ {option}`boot.initrd.availableKernelModules` are missing from
233
+ the kernel. This is useful when combining configurations that
234
+ include a lot of modules, such as
235
+ {option}`hardware.enableAllHardware`, with kernels that don't
236
+ provide as many modules as typical NixOS kernels.
237
+ '' ;
238
+ } ;
239
+
226
240
system . modulesTree = mkOption {
227
241
type = types . listOf types . path ;
228
242
internal = true ;
Original file line number Diff line number Diff line change 18
18
rootModules = config . boot . initrd . availableKernelModules ++ config . boot . initrd . kernelModules ;
19
19
kernel = config . system . modulesTree ;
20
20
firmware = config . hardware . firmware ;
21
- allowMissing = false ;
21
+ allowMissing = config . boot . initrd . allowMissingModules ;
22
22
} ;
23
23
24
24
Original file line number Diff line number Diff line change 104
104
rootModules = config . boot . initrd . availableKernelModules ++ config . boot . initrd . kernelModules ;
105
105
kernel = config . system . modulesTree ;
106
106
firmware = config . hardware . firmware ;
107
- allowMissing = false ;
107
+ allowMissing = config . boot . initrd . allowMissingModules ;
108
108
} ;
109
109
110
110
initrdBinEnv = pkgs . buildEnv {
You can’t perform that action at this time.
0 commit comments