From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id +MDCGqi7YWQjPgEASxT56A (envelope-from ) for ; Mon, 15 May 2023 06:57:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id kGr1Gai7YWSRXgAAG6o9tA (envelope-from ) for ; Mon, 15 May 2023 06:57:12 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 217FB1A927 for ; Mon, 15 May 2023 06:57:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pyQGi-0005kp-1L; Mon, 15 May 2023 00:57:08 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pyQGc-0005kb-Gf for guix-patches@gnu.org; Mon, 15 May 2023 00:57:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pyQGc-0001Py-6t for guix-patches@gnu.org; Mon, 15 May 2023 00:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pyQGb-0006wa-Vr for guix-patches@gnu.org; Mon, 15 May 2023 00:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63508] [PATCH 3/3] gnu: eudev: Always use MAC-based names for network interfaces. Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 15 May 2023 04:57:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63508 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Liliana Marie Prikler Cc: 63508@debbugs.gnu.org Received: via spool by 63508-submit@debbugs.gnu.org id=B63508.168412661926682 (code B ref 63508); Mon, 15 May 2023 04:57:01 +0000 Received: (at 63508) by debbugs.gnu.org; 15 May 2023 04:56:59 +0000 Received: from localhost ([127.0.0.1]:42452 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyQGZ-0006wH-8c for submit@debbugs.gnu.org; Mon, 15 May 2023 00:56:59 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]:45040) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pyQGW-0006w8-UV for 63508@debbugs.gnu.org; Mon, 15 May 2023 00:56:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=EeR96zzSaUhRLLp zF0wuGySRv6ta3pAZOW28A3cAENY=; h=cc:to:subject:date:from:in-reply-to: references; d=lease-up.com; b=oQzPFCo6PfjxVfz6TmfFQizK8lygJIS2dysvTSNl kDQc6h9bw+uPNEtkRMgQkjCV3TnKW4ocwRS+2A409U5+cGsbdtqLkAfDPAN2m5XvFbgigz h9bQlEGP5+OREqnlSGA3zX6/Zoe8X4QxbfB2fmyyUbBDCwdY/jROcjrTWGt0Y= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id 72a5276e (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for <63508@debbugs.gnu.org>; Mon, 15 May 2023 04:56:54 +0000 (UTC) Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-4f13c577e36so13884334e87.1 for <63508@debbugs.gnu.org>; Sun, 14 May 2023 21:56:54 -0700 (PDT) X-Gm-Message-State: AC+VfDwGu7/+ew34Ug+b9vnu0J+nPYednK9FpAn1AqLQm2BdKnTCJxFM OlnkxtcjYZUKyVuUQ/YNp6JkuqQMzyoDI2kqSeA= X-Google-Smtp-Source: ACHHUZ4efeiYYKwZdEEawxBbsAGIRIiBhdw0vnEjLBp+IzUQl09+EUJy6w5bqls0gaHaKYU28Iu/NR/TyCHxps7Et8Y= X-Received: by 2002:ac2:558c:0:b0:4f2:56ed:f22f with SMTP id v12-20020ac2558c000000b004f256edf22fmr6568030lfg.22.1684126612522; Sun, 14 May 2023 21:56:52 -0700 (PDT) MIME-Version: 1.0 References: <89b635e974a7d570cbd19b847fc3eb8ac903103b.1684100044.git.felix.lechner@lease-up.com> <9f3182a690a147e440cef8dc414365730383172d.camel@gmail.com> In-Reply-To: <9f3182a690a147e440cef8dc414365730383172d.camel@gmail.com> Date: Sun, 14 May 2023 21:56:16 -0700 X-Gmail-Original-Message-ID: Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Felix Lechner X-ACL-Warn: , Felix Lechner via Guix-patches From: Felix Lechner via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684126632; a=rsa-sha256; cv=none; b=nE7DOHECnAyO4QMOy/japzraxx2xWUkJN7T3QNh85bQ+UMB2TSrjr6o8K7LCM3S19O4rKP 43yoAWMPrNIvGfYwXAljNTfKQ+WHJrUpLtEWLpvVFFDFCIbziJD2Rp743FOaHn73LgAge5 QLgAo0+cMfpaSwuax/7UcvOlE8zyy7amz/l+wSxHJ9+o8rZgL/h4qExeF+/ocNu4k9CyNQ KMgLjk4fxMRF55xHF/wQj+JyBxBASyzLdT81rvXJUmah1+RFNQYXj9GzdWLY94QZeve9l3 3fLC7QW86uc3KT+32o/SirldOvpBXu46n7vC2d+IwO0eOGBnWR0CpEhbdEFN8Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=oQzPFCo6; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684126632; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=EeR96zzSaUhRLLpzF0wuGySRv6ta3pAZOW28A3cAENY=; b=sD6ZKSgsLsv1y16KFuitb6Qsu+YURat2fuWZCso1OauR+2OHVvOPxiM6o2kpQbFm8sdQct tBpPjx36f95y80szru3U4yCD/SuE5e0Or/cwgePQ3GSfiENJyjyI2wgoMkJI/35s7cdPlZ CRuptI4/Wa+aIpP/hblw0dHonlRKpl1WOpBDBFbxJfQiGepALskzmLQhQUolS6Hs2kf9jw 0M/YahkmL/Yy41mh5oKE+P4wM2icGmiqCDPkLwI51+FqI6N6CarDS9FkgYxyocZOR1n7ly WkJt3fYGd74hWf+vSSeyZWz0ALSexNCbfxkc9mdl88W4lJzgSkZoGQixaQHojw== X-Migadu-Spam-Score: -4.49 X-Spam-Score: -4.49 X-Migadu-Queue-Id: 217FB1A927 X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=oQzPFCo6; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: sJkUmgaTFf9F Hi Liliana, Thank you for your review! On Sun, May 14, 2023 at 9:31=E2=80=AFPM Liliana Marie Prikler wrote: > > Wherefore the regexp-quote? Whoops! That was left over from the attempt to get udevadm to use /etc/udev/rules.d as it should. Thanks for the pointer! > I don't see how this change allows users *or upstream package > maintainers* to continue using onboard names as they have done for ages > and as they would want to continue to do. I have one of those cards. While the interface name did not change when I fiddled with the PCI configuration, I am not sure that prioritizing ID_NET_NAME_ONBOARD over ID_NET_NAME_MAC is a reasonable default for Guix. To rank ID_NET_NAME_ONBOARD below ID_NET_NAME_MAC would not address the shortcoming you perceived because the latter always exists. Instead, I think people wishing to use ID_NET_NAME_ONBOARD should install a custom udev script (and those should be recognized by the udevadm we ship). > a) File a patch upstream to add ID_NET_NAME_MAC into net-name- > slot.rules If upstream accepts such a patch, I believe they would give ID_NET_NAME_MAC the lowest possible priority, but that does nothing for Guix. Common relative priorities are outlined here. [1] For Guix, I think we would like to see ID_NET_NAME_MAC at the top. Kind regards Felix [1] https://wiki.debian.org/NetworkInterfaceNames#How_to_migrate_to_this_sc= heme_on_upgraded_systems