nixos/modules-closure.sh: don't fail if firmware is missing#109030
nixos/modules-closure.sh: don't fail if firmware is missing#109030Mic92 merged 1 commit intoNixOS:masterfrom
Conversation
Since fdf3215, we no longer allow missing modules in the initrd. Unfortunately since before this commit, the modules-closure script would also fail on missing firmware, which is a very common case (e.g. xhci-pci.ko.xz lists renesas_usb_fw.mem as dependent firmware). Fix this by only issuing a warning instead.
|
By the way: |
|
Looks like better solution would be to set Nevermind this doesn't work. |
Ok, maybe my description sounded like this is the only occurance, that is far from true I think. |
|
Can confirm applying this makes my VM build again. |
|
Hit this issue today as well, thanks for the fix. |
Motivation for this change
Since fdf3215, we no longer allow missing modules in the initrd. Unfortunately atm the modules-closure script also fails on missing firmware, which is a very common case (e.g. xhci-pci.ko.xz lists renesas_usb_fw.mem as dependent firmware). Fix this by only issuing a warning instead.
Theoretically this change could beak things for somebody if they explicitly have
allowMissingset and rely on the current behavior (that it reports missing firmware as well). I have a hard time imagining such a setup though, so it should be fine I think.Things done
Rebuilding my system from this branch currently. The initrd builds now (the system closure contains gpgme, which has other issues currently, so I did not boot from this yet).
sandboxinnix.confon non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"./result/bin/)nix path-info -Sbefore and after)