-
-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
I found a case on a Hetzner SX134 server with an addiitonal 10 G network interface that in
nixos-install-scripts/hosters/hetzner-dedicated/hetzner-dedicated-wipe-and-install-nixos.sh
Line 184 in 552eb22
INTERFACE_DEVICE_PATH=$(udevadm info -e | grep -Po "(?<=^P: )(.*${RESCUE_INTERFACE})") |
we need
-INTERFACE_DEVICE_PATH=$(udevadm info -e | grep -Po "(?<=^P: )(.*${RESCUE_INTERFACE})")
+INTERFACE_DEVICE_PATH=$(udevadm info -e | grep -Po "(?<=^P: )(.*${RESCUE_INTERFACE})$")
Otherwise we can get two maches:
# udevadm info -e | grep -P "(?<=^P: )(.*eth1)"
P: /devices/pci0000:00/0000:00:01.1/0000:01:00.0/net/eth1
P: /devices/pci0000:00/0000:00:01.1/0000:01:00.0/net/eth1/ixgbe-mdio-0000:01:00.0
when in fact we want to match only the first line.
Metadata
Metadata
Assignees
Labels
No labels