From 81c556dd77f218e964ee83463e55d88a70752052 Mon Sep 17 00:00:00 2001 From: nl6720 Date: Tue, 7 Nov 2023 13:45:21 +0200 Subject: Run DHCP client on predictable network interfaces Make sure networking still works when someone removes the silly `net.ifnames=0` kernel parameter from the boot loader configuration and chooses to use predictable network interface names. --- images/basic.sh | 1 + images/common.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/images/basic.sh b/images/basic.sh index f97c286..d2a0934 100644 --- a/images/basic.sh +++ b/images/basic.sh @@ -14,6 +14,7 @@ function pre() { cat <"${MOUNT}/etc/systemd/network/80-dhcp.network" [Match] +Name=en* Name=eth* [Network] diff --git a/images/common.sh b/images/common.sh index 36dc0d8..7a5ddcf 100644 --- a/images/common.sh +++ b/images/common.sh @@ -16,6 +16,7 @@ EOF # setup network cat <"${MOUNT}/etc/systemd/network/80-dhcp.network" [Match] +Name=en* Name=eth* [Network] -- cgit v1.2.3-70-g09d2