[devel-distro] [PATCH] net-eth: setup e*.network for networkd-dhcp, networkd-dhcp4

Anton Midyukov antohami at altlinux.org
Wed Dec 4 18:53:45 MSK 2024


Setup dhcp for all e* network interface, when systemd-networkd.
This allows us to abandon the use of udev-rule-generator-net.
---
 features.in/net-eth/config.mk | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/features.in/net-eth/config.mk b/features.in/net-eth/config.mk
index 6fa0b4dfb3..c257c93b4b 100644
--- a/features.in/net-eth/config.mk
+++ b/features.in/net-eth/config.mk
@@ -11,7 +11,6 @@ use/net-eth: use/net/etcnet
 use/net-eth/networkd: use/net/networkd
 	@$(call add_feature)
 	@$(call xport,NET_ETH)
-	@$(call add,BASE_PACKAGES,udev-rule-generator-net)
 
 # typical boilerplate
 use/net-eth/dhcp: use/net-eth use/net/dhcp
@@ -23,9 +22,9 @@ use/net-eth/dhcp/timeout/%: use/net-eth/dhcp
 	@$(call set,NET_ETH_TIMEOUT,$*)
 
 use/net-eth/networkd-dhcp: use/net-eth/networkd
-	@$(call add,NET_ETH,eth0:dhcp)
+	@$(call set,NET_ETH,e*:dhcp)
 
 use/net-eth/networkd-dhcp4: use/net-eth/networkd
-	@$(call add,NET_ETH,eth0:dhcp4)
+	@$(call set,NET_ETH,e*:dhcp4)
 
 # use e.g. eth0:static:10.0.0.2/24:10.0.0.1 for predefined static configuration
-- 
2.42.2



More information about the devel-distro mailing list