From 9bc021cedaba0ea34d3a344fd1139d3f3068c4d1 Mon Sep 17 00:00:00 2001 From: Shea Levy Date: Tue, 30 Apr 2013 11:46:34 -0400 Subject: [PATCH] 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 --- modules/services/hardware/udev.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/modules/services/hardware/udev.nix b/modules/services/hardware/udev.nix index 3bec396bfe57..37dba8ce71dc 100644 --- a/modules/services/hardware/udev.nix +++ b/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 = ''