:: [DNG] Proposed change in behaviour …
Pàgina inicial
Delete this message
Reply to this message
Autor: Daniel Reurich
Data:  
A: dng@lists.dyne.org
Assumptes vells: [devuan-dev] eudev net.ifnames logic reversing proposal
Assumpte: [DNG] Proposed change in behaviour for ascii: eudev net.ifnames logic reversing proposal
Hi,

We discussed a few weeks back in a dev meeting whether or not to revert
to jessie like naming scheme for ethernet interfaces by default.

The eudev package (currently found in the experimental repos and at
https://git.devuan.org/devuan-packages/eudev ) utilizes the same logic
like udev does when it comes to interface naming schemes. The patch
appended below would reverse the logic and make it opt-in rather than
opt-out.

This would lead network interface names default to the old "eth0" or
"wlan0" scheme, rather than the new(?) "enp0s3"-like scheme. It implies
having "net.ifnames=1" in the kernel cmdline to get the "enp0s3"-like
scheme and not touching anything to get the "eth0" scheme.

To keep these things consistent we should also apply the same patch to
udev as well.

Thoughts??

---

diff --git a/rules/80-net-name-slot.rules b/rules/80-net-name-slot.rules
index c5f1b3885..4738e533f 100644
--- a/rules/80-net-name-slot.rules
+++ b/rules/80-net-name-slot.rules
@@ -5,7 +5,7 @@ SUBSYSTEM!="net", GOTO="net_name_slot_end"
NAME!="", GOTO="net_name_slot_end"

IMPORT{cmdline}="net.ifnames"
-ENV{net.ifnames}=="0", GOTO="net_name_slot_end"
+ENV{net.ifnames}!="1", GOTO="net_name_slot_end"

NAME=="", ENV{ID_NET_NAME_ONBOARD}!="", NAME="$env{ID_NET_NAME_ONBOARD}"
NAME=="", ENV{ID_NET_NAME_SLOT}!="", NAME="$env{ID_NET_NAME_SLOT}"

--
~ parazyd
GnuPG: 03337671FDE75BB6A85EC91FB876CB44FA1B0274
GnuPG: https://parazyd.cf/FA1B0274.asc



_______________________________________________
devuan-dev internal mailing list
devuan-dev@???
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/devuan-dev


Daniel Reurich
Centurion Computer Technology (2005) Ltd.
021 797 722

--TB36FDmn/VVEgNH/
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

We've been talking about this before, but agreed not to put it in
production before consensus is reached.

The eudev package (currently found in the experimental repos and at
https://git.devuan.org/devuan-packages/eudev ) utilizes the same logic
like udev does when it comes to interface naming schemes. The patch
appended below would reverse the logic and make it opt-in rather than
opt-out.

This would lead network interface names default to the old "eth0" or
"wlan0" scheme, rather than the new(?) "enp0s3"-like scheme. It implies
having "net.ifnames=3D1" in the kernel cmdline to get the "enp0s3"-like
scheme and not touching anything to get the "eth0" scheme.

If there are no objections until wednesday, I'd push this trivial, but
important to discuss patch to the package and build it for the
repositories. Please see the patch below:

---

diff --git a/rules/80-net-name-slot.rules b/rules/80-net-name-slot.rules
index c5f1b3885..4738e533f 100644
--- a/rules/80-net-name-slot.rules
+++ b/rules/80-net-name-slot.rules
@@ -5,7 +5,7 @@ SUBSYSTEM!=3D"net", GOTO=3D"net_name_slot_end"
NAME!=3D"", GOTO=3D"net_name_slot_end"

IMPORT{cmdline}=3D"net.ifnames"
-ENV{net.ifnames}=3D=3D"0", GOTO=3D"net_name_slot_end"
+ENV{net.ifnames}!=3D"1", GOTO=3D"net_name_slot_end"

NAME=3D=3D"", ENV{ID_NET_NAME_ONBOARD}!=3D"", NAME=3D"$env{ID_NET_NAME_ONB=
OARD}"
NAME=3D=3D"", ENV{ID_NET_NAME_SLOT}!=3D"", NAME=3D"$env{ID_NET_NAME_SLOT}"

--=20
~ parazyd
GnuPG: 03337671FDE75BB6A85EC91FB876CB44FA1B0274
GnuPG: https://parazyd.cf/FA1B0274.asc

--TB36FDmn/VVEgNH/
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature

-----BEGIN PGP SIGNATURE-----

iQQzBAEBCgAdFiEEnmDedgFJF2WDVMpi8Mso/PeGN94FAlmZiDoACgkQ8Mso/PeG
N95geR//VBcCtAIR5ZMBx2kVvVAM2kfxrvSyICosd8NLamBHB2t6CaEfvapUiSWC
7TX+ZGwNwr85vg2ErgWkFUlc/1C94K5sZUoaapPtJzszbhbivwyF+0eltVr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WJDwmrnX1ljKT1DYGRLGzdvm5LiHd6Cetrb+pRXiIFA
dqSoUiPeOD7aT/vPPf/bEOrwyPS3E5mJuJElGPBvMWvvkXqIQywncye6xWyNRK7T
ZSe3655Cxzh5W8V591SYOGzoUKAEwF4TY/O+jW51OpUXCxs8DTwkqJPl6F7DTP98
ZVHuANvIVHQrWlgOIPtBRgTbHzHSMQ==
=tXJ4
-----END PGP SIGNATURE-----

--TB36FDmn/VVEgNH/--

_______________________________________________
devuan-dev internal mailing list
devuan-dev@???
https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/devuan-dev