How to mount /lib/firmware RW

I know I’m bumping an old topic; apologies. Your instructions are exactly what I’m looking for, but when I attempt to bind-mount the /lib/firmware directory:

services:
    app:
      ...
      labels:
        io.balena.features.firmware: '1'
      ...

…and then attempt to re-mount the directory in the container, I get this error:

bash-5.0# mount -o remount,rw /lib/firmware
mount: can't find /lib/firmware in /proc/mounts

Any ideas?

EDIT: I was able to get it working by making two small changes.

First, I had to run my app container with privileged: true:

services:
    app:
      ...
      labels:
        io.balena.features.firmware: '1'
      privileged: true
      ...

Second, I had to have a space between remount and rw (I got the idea from https://askubuntu.com/a/744648):

bash-5.0# mount -o remount, rw /lib/firmware
1 Like