[systemd-devel] Updating network file during boot
Silvio Knizek
killermoehre at gmx.net
Thu Aug 15 14:12:49 UTC 2024
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 systemd 245 (Ubuntu focal) and I can likely match on Property="ID_NET_LABEL_ONBOARD=Onboard ETHERNET Controller". I'll give that a test as well.
>
> My existing config is using Path=pci-0000:05:00.0 and that works, but when I try to match on Property=Path=pci-0000:05:00.0 Driver=oak,it doesn't. this doesn't make sense to me.
>
> I was hoping that I can have specific matches for hte PCI addresses and Drivers that I can use to match both sets of configuration with and without the hotplug board.
>
> Henti
Wait, what? I think, you have the property line wrong.
```ini
[Match]
Property="ID_NET_LABEL_ONBOARD=Onboard ETHERNET Controller"
[Link]
Name=onboard
```
and
```ini
[Match]
Property=!"ID_NET_LABEL_ONBOARD=Onboard ETHERNET Controller"
Driver=oak
[Link]
Name=oak-interface
```
Does this help?
BR
Silvio
More information about the systemd-devel
mailing list