Hello,
I’m running into an issue where the /lib/firmware/ directory is set to read-only and I would like to add some firmware to that folder to support a pcie card that I have installed in the system for accessing from an app. I have enabled developer mode and run the command sudo zfs get readonly but I can not find reference in the output to the /lib directory. I realize I will need to repeat the process with each build of truenas scale but I would really like to add the firmware for my Multimedia controller: Philips Semiconductors SAA7164 (rev 81) card with the firmware Linux is looking for in dmesg saa7164_downloadfirmware() Waiting for firmware upload (NXP7164-2010-03-10.1.fw) with the firmware from github OpenELEC/dvb-firmware/raw/refs/heads/master/firmware/NXP7164-2010-03-10.1.fw
If anyone knows how I can change the readonly permission on /lib/firmware that would be very helpful to me.
Thanks in advance for your careful consideration of my problems and the ones related to Truenas Scale also 
If you run
/usr/local/libexec/disable-rootfs-protection
The root filesystem will become read-write and you can make whatever changes you want.
1 Like
Thank you for that tip, of coarse for me it raises another issue since I have a NVIDIA card in my system that is preventing the command you suggested from executing without error. If possible I’d like to avoid having to destroy my jellyfin app to make the change, especially because I’m trying to add the capture card to Jellyfin.
sudo /usr/local/libexec/disable-rootfs-protection
/usr is currently provided by a readonly systemd system extension. This may occur if nvidia module support is enabled. System extensions must be disabled prior to disabling rootfs protection.
I have also tried to change the readonly setting with no luck.
sudo zfs set readonly=off boot-pool/ROOT/24.10.2/usr
sudo zfs mount -a
After I rebooted the system I see the readonly flag is off for boot-pool/ROOT/24.10.2/usr readonly off local
What’s strange is that when I try to copy the .fw files to /lib/firmware the shell is still telling me it’s readonly.
sudo cp *.fw /usr/lib/firmware
cp: cannot create regular file ‘/usr/lib/firmware/NXP7164-2010-03-10.1.fw’: Read-only file system
If you’re using the nvidia driver system extension then it renders /usr readonly. You would have to unload system extensions, make changes, then reload them (assuming you don’t break your install)
.
I was able to load the firmware after disabling nvidia in the apps settings. Thanks again for your help with getting the firmware added. Also the fw / drives loaded correctly for the capture card after the change.