ALT Linux Distributions development
 help / color / mirror / Atom feed
* [devel-distro] [PATCH] net-eth: setup e*.network for networkd-dhcp, networkd-dhcp4
@ 2024-12-04 15:53 Anton Midyukov
  2024-12-04 15:59 ` Anton Midyukov
  0 siblings, 1 reply; 2+ messages in thread
From: Anton Midyukov @ 2024-12-04 15:53 UTC (permalink / raw)
  To: devel-distro

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



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [devel-distro] [PATCH] net-eth: setup e*.network for networkd-dhcp, networkd-dhcp4
  2024-12-04 15:53 [devel-distro] [PATCH] net-eth: setup e*.network for networkd-dhcp, networkd-dhcp4 Anton Midyukov
@ 2024-12-04 15:59 ` Anton Midyukov
  0 siblings, 0 replies; 2+ messages in thread
From: Anton Midyukov @ 2024-12-04 15:59 UTC (permalink / raw)
  To: devel-distro

Здравствуйте

Подумалось, что вот таким нехитрым образом можно настроить все проводные сетевые интерфейсы в собираемых rootfs
с systemd-networkd на работу по dhcp.
Правда, конфиг будет иметь имя e*.network, но это кажется мелочью.
Главное, что это позволяет отказаться от пакета udev-rule-generator-net и использовать имена интерфейсов,
которые даёт udev.


04.12.2024 18:53, Anton Midyukov пишет:
> 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

-- 
best regards, Anton Midyukov <antohami@altlinux.org>



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-04 15:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-04 15:53 [devel-distro] [PATCH] net-eth: setup e*.network for networkd-dhcp, networkd-dhcp4 Anton Midyukov
2024-12-04 15:59 ` Anton Midyukov

ALT Linux Distributions development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-distro/0 devel-distro/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-distro devel-distro/ http://lore.altlinux.org/devel-distro \
		devel-distro@lists.altlinux.org devel-distro@lists.altlinux.ru devel-distro@lists.altlinux.com
	public-inbox-index devel-distro

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-distro


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git