Hi Simon,

On Tue, 2024-07-09 at 22:44 +0900, Simon Richter wrote:
> I believe NM does not have a fixed configuration format, but only a dbus 
> API.

It's perfectly fine to edit configuration files for NM manually, see
man:nm-settings-keyfile(5).

> Our best bet there would be a firstboot unit, but I have no idea
> whether accessing NM from a unit attached to firstboot is safe or leads 
> to a dependency loop[1].

So this is not required and seems overly complicated.

> I'm not sure if systemd-networkd is much happier long-term if we write 
> its configuration from a shell script, we'd need to get some commitment 
> from upstream that this is an interface, not an implementation detail, 
> at least.

This seems similar to writing .service units via a shell script (or
manually) which doesn't seem to be a problem.

Or similar to writing /etc/network/interfaces: are we really sure this
is safe long-term? We probably should not bet on that!

Ansgar


Reply via email to