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>
wip/yesman
Shea Levy 11 years ago
parent ebb9f0e3fc
commit 9bc021ceda
  1. 5
      modules/services/hardware/udev.nix

@ -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…
Cancel
Save