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:
Shea Levy 2013-04-30 11:46:34 -04:00
parent ebb9f0e3fc
commit 9bc021ceda

View file

@ -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 =
''