Doubts about blacklisting non-free-firmware modules

1) Introduction

The current approach to non-free-firmware in live-build is that if some specific sections are turned on then the firmware is used.

I want to rework that code in such a way that you can turn off non-free-firmware from isolinux/grub.cfg boot menu thanks to kernel module blacklisting.

So... the draft of it is almost finished and I will try to integrate it onto live-build in the future.

2) The way my script works is getting `firmware-amd-graphics.metainfo.xml` file from `firmware-amd-graphics` package and `firmware-misc-nonfree.metainfo.xml` file from `firmware-misc-nonfree` package.

An excerpt of them would be:
```
    <firmware type="runtime">moxa/moxa-1653.fw</firmware>
    <firmware type="runtime">moxa/moxa-1658.fw</firmware>
    <firmware type="runtime">mt7601u.bin</firmware>
    <firmware type="runtime">mt7650.bin</firmware>
    <firmware type="runtime">mt7662.bin</firmware>
    <firmware type="runtime">mt7662_rom_patch.bin</firmware>
    <firmware type="runtime">mts_cdma.fw</firmware>
    <firmware type="runtime">mts_edge.fw</firmware>
    <firmware type="runtime">mts_gsm.fw</firmware>
    <firmware type="runtime">nvidia/ga102/acr/ucode_ahesasc.bin</firmware>
    <firmware type="runtime">nvidia/ga102/acr/ucode_asb.bin</firmware>
```
.

What I am doing right now is just getting those ones that have an slash in their name, so from the previous excerpt I would be using: `nvidia` and `moxa` but not `mt7601u.bin`, `mt7662_rom_patch.bin`, `mts_cdma.fw` and so on.

My question is... should I include those ( `mt7601u.bin`, `mt7662_rom_patch.bin`, `mts_cdma.fw` ) too?

3) Just for reference what I am able to produce right now it's:
```
amdgpu,r128,radeon,3com,advansys,brcm,cadence,cxgb3,cxgb4,dabusb,e100,ene-ub6250,go7007,i915,imx,intel,kaweth,matrox,mediatek,moxa,nvidia,rockchip,tehuti,tigon,ueagle-atm,wfx
```
so that I can prepend them with: `module_blacklist=` in an hypothetical *Libre-only modules* boot option that I want to add.

4) I am currently using simple tools like awk to parse the xml, I'm not sure if I'm better off using the firmware-nonfree source package for getting all of those kernel modules.

So any ideas are appreciated.

Thank you for your feedback!

adrian15

Reply via email to