For anyone who comes across this issue and wants a relatively easy workaround:
1. Create a new directory, like `/usr/local/lib/firmware` for example 2. Add this path to the firmware loader: `echo -n /usr/local/lib/firmware > /sys/module/firmware_class/parameters/path` 3. The kernel will now search `/usr/local/lib/firmware` for the relevant firmware files before searching other locations. To make it even easier, I created a script called `/usr/local/lib/firmware/local-firmware.sh` which does step 2, then I created `/etc/modprobe.d/iwlwifi.conf` and added the following line: `install iwlwifi /usr/local/lib/firmware/local-firmware.sh && /sbin/modprobe --ignore-install iwlwifi` What this does is tell modprobe that in order to install the iwlwifi module, run the `local-firmware.sh` script first, then run `/sbin/modprobe --ignore-install iwlwifi` (we need `--ignore-install` to ignore the `install` line we just added, otherwise it will run itself which runs itself, etc. forever). This way, attempting to load the iwlwifi module will automatically add `/usr/local/lib/firmware` to our firmware path first. You can do the same thing with any other kernel module (or any other command). Caveats: 1. The shell script you write runs automatically as root without confirmation whenever the system tries to load the module, so make sure it's somewhere that only root can access/edit/run it. 2. This only works if the module, script, and firmware are all accessible; if you're trying to do this with a kernel module which loads in the initrd phase it may be significantly more complex to implement as you'll need to copy the firmware and the script to the initrd for it to work. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2150769 Title: pc-kernel snaps are missing some intel firmware but it also cannot be installed by users manually To manage notifications about this bug go to: https://bugs.launchpad.net/canonical-kernel-snaps/+bug/2150769/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
