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 iLIcK1x8ZWQ6VAEASxT56A (envelope-from ) for ; Thu, 18 May 2023 03:16: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 QBY+Klx8ZWSsZAEAG6o9tA (envelope-from ) for ; Thu, 18 May 2023 03:16: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 3A1021A47D for ; Thu, 18 May 2023 03:16:12 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pzSEw-0004lB-Ro; Wed, 17 May 2023 21:15:34 -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 1pzSEs-0004kc-Ix for guix-devel@gnu.org; Wed, 17 May 2023 21:15:33 -0400 Received: from sail-ipv4.us-core.com ([208.82.101.137]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1pzSEo-0006IM-V9 for guix-devel@gnu.org; Wed, 17 May 2023 21:15:30 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=5MJc1sqQ4hHK3b9 g0CL2EmFSl+Ed0m07DYuWeSrFO4I=; h=to:subject:date:from:in-reply-to: references; d=lease-up.com; b=pcD5Tfj3thtUF0y4M8RizuivGX7T/FQaAmx9ALUg gVJrzvurxmf8FjWHEd+bUx6afdBvkXwNCijRvyF2hhJPeHAMKjkNJSAwmovsa5I5pSmzd3 ng95LZFEQug0pWql89h3a9KOqA9eNa79YpY7yonKUHjXCnPO2Zrnn9jwqQ6bE= Received: by sail-ipv4.us-core.com (OpenSMTPD) with ESMTPSA id ccb1570d (TLSv1.3:TLS_CHACHA20_POLY1305_SHA256:256:NO) for ; Thu, 18 May 2023 01:15:22 +0000 (UTC) Received: by mail-lj1-f182.google.com with SMTP id 38308e7fff4ca-2af15b5f726so5146681fa.1 for ; Wed, 17 May 2023 18:15:21 -0700 (PDT) X-Gm-Message-State: AC+VfDytC6rnoNR0o2Y8Umi+6zGCUgWdKUbF1O/1nVHjN3ZYrFnsHfF0 bbiR8R43HZS/nTzps0C71XScHrOrdDAWHGUvnvQ= X-Google-Smtp-Source: ACHHUZ68cr8dTHLw2wmo6KJUfrkN5CEOIWBfX2Dp/g+G1ap0ZbQVHUUGtGunAQEl4tC2Vdkf7qSB67ZhhQhDDRNSbsg= X-Received: by 2002:ac2:5283:0:b0:4f2:7dda:ad06 with SMTP id q3-20020ac25283000000b004f27ddaad06mr789967lfm.10.1684372519910; Wed, 17 May 2023 18:15:19 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Wed, 17 May 2023 18:14:43 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Defaulting to MAC-based names for network interfaces To: Guix Devel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=208.82.101.137; envelope-from=felix.lechner@lease-up.com; helo=sail-ipv4.us-core.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Felix Lechner From: Felix Lechner via "Development of GNU Guix and the GNU System distribution." Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684372572; a=rsa-sha256; cv=none; b=sZQwiyHtAHYFzF1M61UYOX3pAlxlcbaG0aUA6FxvTMDWlKqaPjIsBU1sn5f90Ww41vosXU bGD/xLkYiKyZ6G/P4k7QcnHipzVd49XEygUMZl+BK4yCCowv5UwT31+MFo3WrmdwrNoOvV 8vsSmhlUyBBpD1g1dKe8Jg7A9zNQFWmZHouCCZ4v6b/RE1vgv/b7WBc0lfndhvwVhz6qi/ xgb0t5BNpbV/1Gk09pXgKCMlECcbOt+XFGsjI7/7WZQUpzC+lmvo8JREPNSbYCCoHtfwmp U+P6OoavM/jOWyKi+Z5AFWib+LsToOkDmssHJdkdUos9CqGmBNj81Llnv65XrQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=pcD5Tfj3; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684372572; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=iKKxqM+ei/LEDgHkCnps6tpP066S4B5m3hZOzbJK+AM=; b=C/+9WCdTxb90iHu73DyTEhGc7d4Tzam1QPl3ZPlX4ZicZYB57sNsmIbh2Fe1y/jQ3x+Y3a IAhSzb3TkVvKZKyQ7ikMPuqECWm0y1wFDEq1/3sSHNOiacKvGgtVoKHggobe8IHp3LpNQ1 CFUr2EtTSrW2Wr+jCSbjXvYfbDHo8Hkp9N470AuC2aCmPJLQD5c2f0GkFIo7f37fTXh42d hCGKi73zpTH6WuNvpwCyeviO3Wf+khqI1sNbrRWhGsCDrOm0WWkKZBOzDvBpHtm7QlP1g8 MyXw5xmMid9QV0RAWTJ+Ovc1IByjlr9lTY+HwhR1SbfxkeLv+317o8Q26agUzQ== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=pcD5Tfj3; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.99 X-Spam-Score: -1.99 X-Migadu-Queue-Id: 3A1021A47D X-TUID: csu3IP2RzlTO Hi Efraim, On Mon, May 15, 2023 at 7:47=E2=80=AFAM Efraim Flashner wrote: > > > the standard command to test udev setups: [2] > > > > $ udevadm --debug test /sys/class/net/* > > > > did not find the script installed via the 'udev-service-type'. > > I was curious about this, since I've been using a udev rule for quite a > while to setup zram swap. I definitely have my zram swap enabled and > working, but 'udevadm --debug test /dev/zram0' didn't find any rule for > zram. Your zram probably works because your udev rule does not need a working udevadm. I believe that network interfaces actually use udevadm to determine their name. Either way, my latest amendments to Bug#63508 (v2) will fix your udevadm. [1] In a concession to Liliana's opposition, I retitled the bug to sidestep the question of the MAC-based names as a default setting. My position has not changed but that should probably be a separate discussion. Personally, I hope to win everyone's hearts with this: My fix allows folks to experiment with MAC-based names so everyone can see their great utility. Anyone interested, please put this in your system services: (udev-rules-service 'net-name-mac (udev-rule "79-net-name-mac.rules" " SUBSYSTEM=3D=3D\"net\", ACTION=3D=3D\"add\", NAME=3D\"$env{ID_NET_NAME_MAC}= \" "))) Sorry I cannot offer substitutes. The change rebuilds more than it should. As a side note, I looked into upgrading to eudev 3.2.12, which was tagged yesterday, but that will bring more pain because upstream hardcoded the path to the hwdb. [2] I have a partial fix, although some consuming packages like upower aren't working yet. Kind regards Felix [1] https://issues.guix.gnu.org/63508#12 [2] https://github.com/eudev-project/eudev/blob/2703baf55615b7554fb67c4f1c2= 41f057f8c0a79/src/udev/udevadm-hwdb.c#L588