Persisting driver data (root fs)

Took me a while, but I finally got my (trigger warning, bad word!) WiFi to work.

Tiny little issue—it requires me to put a file into /var/lib. Obviously that doesn’t work. My current workaround is to run

mount -o ro,bind /mnt/overlay/lib/firmware/brcm/ /lib/firmware/brcm/
rmmod brcmfmac
modprobe brcmfmac

manually after each reboot.

So, any suggestions how to automate that? Preferable having the mount executed before the driver is initially loaded, or at least early enough that the GUI recognises the interface.


And in case someone else wants to use an ACEPC T11 and WiFi, here’s the one-time prep to make above work: