Re: [systemd-devel] Updating network file during boot

2024-08-15 Thread Andrei Borzenkov
On Thu, Aug 15, 2024 at 7:15 PM Henti Smith wrote: ... > > The full device list (when configured correctly) is: > E: DEVPATH=/devices/pci:00/:00:0c.0/:01:00.0/net/eno1 > E: DEVPATH=/devices/pci:00/:00:0d.0/:02:00.0/net/eth1 > E: DEVPATH=/devices/pci:00/:00:10.0/

Re: [systemd-devel] Updating network file during boot

2024-08-15 Thread Etienne Champetier
Le jeu. 15 août 2024, 05:03, Henti Smith a écrit : > Hello Etienne > > I cannot find any info on how to extract this information from the current > system. > > How would I go about doing that ? > Try cat /sys/devices/pci:00/:00:10.0/:05:00.0/firmware_node/sun cat /sys/devices/pci000

Re: [systemd-devel] Updating network file during boot

2024-08-15 Thread Henti Smith
On Thu, 15 Aug 2024 at 15:18, Silvio Knizek wrote: > Am Donnerstag, dem 15.08.2024 um 14:57 +0100 schrieb Henti Smith: > > > > Hi Henti, > > > > > > why can't you [Match] onto `Property="ID_NET_LABEL_ONBOARD=Onboard > ETHERNET Controller"`? Is your systemd older than 243? Than you should > really

Re: [systemd-devel] Updating network file during boot

2024-08-15 Thread Silvio Knizek
Am Donnerstag, dem 15.08.2024 um 14:57 +0100 schrieb Henti Smith: > > Hi Henti, > > > > why can't you [Match] onto `Property="ID_NET_LABEL_ONBOARD=Onboard ETHERNET > > Controller"`? Is your systemd older than 243? Than you should really update. > > > > BR > > Silvio > Hi Silvio,  > > I'm on

Re: [systemd-devel] Updating network file during boot

2024-08-15 Thread Henti Smith
On Thu, 15 Aug 2024 at 14:46, Silvio Knizek wrote: > Am Donnerstag, dem 15.08.2024 um 14:07 +0100 schrieb Henti Smith: > > Hello again. > > > > I've tried multiple ways of matching and none seem to be working. > > > > I removed all the configuration in /etc/systemd/network, run > update-initramfs

Re: [systemd-devel] Updating network file during boot

2024-08-15 Thread Silvio Knizek
Am Donnerstag, dem 15.08.2024 um 14:07 +0100 schrieb Henti Smith: > Hello again. > > I've tried multiple ways of matching and none seem to be working.  > > I removed all the configuration in /etc/systemd/network, run update-initramfs > and rebooted. > > The resulting network configuration for

Re: [systemd-devel] Updating network file during boot

2024-08-15 Thread Andrei Borzenkov
On Thu, Aug 15, 2024 at 4:08 PM Henti Smith wrote: > > I was really hoping that I could use DEVPATH to glob match on, but this seems > to not be possible. the only way to match on DEVPATH is using Property. > however there is no glob matching with that option. You can go old school and simply s

Re: [systemd-devel] Updating network file during boot

2024-08-15 Thread Henti Smith
Hello again. I've tried multiple ways of matching and none seem to be working. I removed all the configuration in /etc/systemd/network, run update-initramfs and rebooted. The resulting network configuration for the marvell devices was: root@av20-mvc-01:~# udevadm info /sys/class/net/eno2 P: /dev

Re: [systemd-devel] Updating network file during boot

2024-08-15 Thread Henti Smith
This does not seem to work, and reading the man page, "Path" matches against the udev property ID_PATH, which in this case is will be the changing addresses for example "pci-:05:00.0" I'll play some more and see what other options I have. Kind regards Henti On Thu, 15 Aug 2024 at 12:46, And

Re: [systemd-devel] Updating network file during boot

2024-08-15 Thread Andrei Borzenkov
On Thu, Aug 15, 2024 at 2:37 PM Henti Smith wrote: > > > They do stay the same: > > Without the Board: > DEVPATH=/devices/pci:00/:00:10.0/:04:00.0/net/eno2 > DEVPATH=/devices/pci:00/:00:11.0/:05:00.0/net/mvc-sw1 > > With the Board: > DEVPATH=/devices/pci:00/:00:10.0

Re: [systemd-devel] Updating network file during boot

2024-08-15 Thread Henti Smith
They do stay the same: Without the Board: DEVPATH=/devices/pci:00/:00:10.0/:04:00.0/net/eno2 DEVPATH=/devices/pci:00/:00:11.0/:05:00.0/net/mvc-sw1 With the Board: DEVPATH=/devices/pci:00/:00:10.0/:05:00.0/net/mvc-sw2 DEVPATH=/devices/pci:00/:00:11.0/000

Re: [systemd-devel] Updating network file during boot

2024-08-15 Thread Andrei Borzenkov
On Thu, Aug 15, 2024 at 12:25 PM Henti Smith wrote: > root@av20-mvc-01:~# udevadm info /sys/class/net/eno2 > P: /devices/pci:00/:00:10.0/:04:00.0/net/eno2 ... > > root@av20-mvc-01:~# udevadm info /sys/class/net/mvc-sw1 > P: /devices/pci:00/:00:11.0/:05:00.0/net/mvc-sw1 Doe

Re: [systemd-devel] Updating network file during boot

2024-08-15 Thread Henti Smith
Hi Silvio, Thank you for this information. Unfortunately, this does not seem to have the uniquely identifiable information I can use to consistently match the devices. See below. root@av20-mvc-01:~# lspci -d:"$marvell_device_id" 04:00.0 Ethernet controller: Marvell Technology Group Ltd. Device 0

Re: [systemd-devel] Updating network file during boot

2024-08-15 Thread Henti Smith
Hello Etienne I cannot find any info on how to extract this information from the current system. How would I go about doing that ? Kind regards Henti On Tue, 13 Aug 2024 at 17:56, Etienne Champetier < champetier.etie...@gmail.com> wrote: > Hello Henti, > > Le mar. 13 août 2024 à 12:16, Henti S