[systemd-devel] Updating network file during boot

Henti Smith henti at gaydonsmith.co.uk
Thu Aug 15 11:37:11 UTC 2024


They do stay the same:

Without the Board:
DEVPATH=/devices/pci0000:00/0000:00:10.0/0000:04:00.0/net/eno2
DEVPATH=/devices/pci0000:00/0000:00:11.0/0000:05:00.0/net/mvc-sw1

With the Board:
DEVPATH=/devices/pci0000:00/0000:00:10.0/0000:05:00.0/net/mvc-sw2
DEVPATH=/devices/pci0000:00/0000:00:11.0/0000:06:00.0/net/enp6s0

I'm assuming I can use this to match using glob ?

If so, do I use the existing Path= or do I switch to DEVPATH ?

Kind regards
Henti


On Thu, 15 Aug 2024 at 10:33, Andrei Borzenkov <arvidjaar at gmail.com> wrote:

> On Thu, Aug 15, 2024 at 12:25 PM Henti Smith <henti at gaydonsmith.co.uk>
> wrote:
> > root at av20-mvc-01:~# udevadm info /sys/class/net/eno2
> > P: /devices/pci0000:00/0000:00:10.0/0000:04:00.0/net/eno2
> ...
> >
> > root at av20-mvc-01:~# udevadm info /sys/class/net/mvc-sw1
> > P: /devices/pci0000:00/0000:00:11.0/0000:05:00.0/net/mvc-sw1
>
> Does parent device information (0000:00:10.0 or 0000:00:11.0) also
> change when an additional card is present/absent?
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20240815/c39139d7/attachment-0001.htm>


More information about the systemd-devel mailing list