Re: [systemd-devel] systemd link file rename eth0 do not take effect

2025-06-16 Thread Mantas Mikulėnas
nfsroot= causes the interface to be brought up very early, before udev starts, and before it has a chance to apply its rules and .link files. Before kernel 6.2, it was not possible to rename interfaces that were already "up" (see linux commit bd039b5ea2a91). On another note, even though Nam

[systemd-devel] systemd link file rename eth0 do not take effect

2025-06-16 Thread guocai he
Hi, I want to create a link file and want to match the mac to rename eth0 to mycustometh but fail. seems that the link file is not applied? The fllowing is my step and some logs: ##1 etho mac udevadm info /sys/class/net/eth0    E: ID_NET_NAME_MAC=enxa4bf016bfaf5 ##2 link file root@intel-x86-6

[systemd-devel] systemd link file rename eth0 do not take effect

2025-06-16 Thread He, Guocai (CN)
Hi, I want to create a link file and want to match the mac to rename eth0 to mycustometh but fail. seems that the link file is not applied? The fllowing is my step and some logs: #1 etho mac udevadm info /sys/class/net/eth0 E: ID_NET_NAME_MAC=enxa4bf016bfaf5 #2 link file root@intel-x86-64:~#

[systemd-devel] Waiting for systemd to handle events sent by systemd-udev

2025-06-16 Thread Francis Moreau
Hello, I'd like to know if there's a mechanism that allows to wait that all events triggered by the modifications of the disk partition table of a given block device are processed by systemd so the corresponding device unit state is stable. Currently I can see that the device unit is entering in

[systemd-devel] How to get argument list for methods

2025-06-16 Thread Chris Kottaridis
I am beginning to use the sd-bus library. I have been able to get a couple of properties, MainPID and SubState. I would like to use the Stop method. I am using cups as an example. This commands shows that in thee Unit interface there is a Start and Stop method: $ busctl introspect org.freedesk

Re: [systemd-devel] How to get argument list for methods

2025-06-16 Thread Mantas Mikulėnas
GLib's `gdbus introspect` can show you the parameter names if they're included in the introspection XML: gdbus introspect -y -d org.freedesktop.systemd1 -o /org/freedesktop/systemd1/unit/cups_2eservice But introspection is mainly for use by language bindings (e.g. perl-dbus) – it is not a sub