Making network settings permanent

Hey all. I have an application I am trying to port over to BalenaOS. This app is a simple web based UI which allows a user of our product to set the IP of their device if required. I have managed to set the IP of the device via dbus. The issue, as many of you probably know, is upon reboot the IP is reset back to whatever is in the system-connections file. Is there some way to make these settings permanent from inside a container?

Hmm, I think I see what I did. I had a static connection defined in /mnt/boot/system-connections and was editing that. Seems like if I just create and edit a new connection using dbus or nmcli it will persist. Can anyone confirm that for me please?

We’ve been looking at a similar setup for our devices and testing showed that anything in /mnt/boot will be copied into place on boot, but if there’s nothing there then NetworkManager configuration updates are persistent, they’re saved in the data partition which also survives operating system upgrades.

1 Like

Thank you for confirming. Did you end up using dbus or did you go the nmcli route? Because I can install nmcli in the container I’m kind of thinking that using dbus is needlessly complicated.