How do I need to configure the NetworkManager to work with a read-only root filesystem?
I have an embedded device (using 16.04) and I'm trying to mount the root filesystem read-only. I've read numerous guides and have it 99% working.
/var is mounted read-write, with
/ mounted read-only. When I try to join a wifi network, I get the following error:
# nmcli d wifi connect mySSID password myPassword Error: Connection activation failed: (7) Secrets were required, but not provided.
If I reboot with
# nmcli d wifi connect mySSID password myPassword Device 'wlan0' successfully activated with 'aefcb407-86af-4b40-aaab-9913410ac305'.
I noticed it creates a file in
/etc/NetworkManager/system-connections so I made the directory a symbolic link to
/var/local/system-connections, and tried again with a fresh copy of the read-only
/ ...but same error.
I verified that when I receive the error, I can manually create a file in that directory:
# touch test_rw_fs # ls test_rw_fs test_rw_fs
What am I missing? How do I configure the NetworkManager in this configuraiton?