forked from mirrors/nixpkgs
Set the firmware_class path in modprobe.d
Activation scripts are run before systemd is started, so unless users are loading firmware in the initrd (which AFAICT we currently have no support for) the previous /sys-based setting of firmware_class was ineffective on boot. Signed-off-by: Shea Levy <shea@shealevy.com>
This commit is contained in:
parent
ebb9f0e3fc
commit
9bc021ceda
|
@ -228,10 +228,7 @@ in
|
|||
(isYes "NET")
|
||||
];
|
||||
|
||||
system.activationScripts.setFirmwarePath =
|
||||
''
|
||||
echo -n ${config.hardware.firmware} 2>/dev/null > /sys/module/firmware_class/parameters/path
|
||||
'';
|
||||
boot.extraModprobeConfig = "options firmware_class path=${config.hardware.firmware}";
|
||||
|
||||
system.activationScripts.clearHotplug =
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue