I want to edit Host OS read-only files

I want to use NetworkManager with the systemd service running on the container pi user. Therefore, I want to edit /etc/dbus-1/system.d/org.freedesktop.NetworkManager.conf of host OS, but I can not do it because it is a read-only file system.
And I want to do the editing from inside the container.
Is there any way?


Regarding dbus communication between hostOS and container we have this document: https://www.balena.io/docs/learn/develop/runtime/#dbus-communication-with-host-os

Also, you can’t access the hostOS filesystem from the container.

If you want to edit that file you will have to mount the root partition as r/w from the hostOS:
mount -o remount,rw /

I understand. Thank you.