From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id UKTiMkKX3GR82QAASxT56A (envelope-from ) for ; Wed, 16 Aug 2023 11:30:42 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4789::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id wJWVMkKX3GSP/wAAauVa8A (envelope-from ) for ; Wed, 16 Aug 2023 11:30:42 +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 A8B124F030 for ; Wed, 16 Aug 2023 11:30:42 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=none; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1692178242; 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-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; bh=Z0z8G7UVGuslKWRwXCca2bhRt5HNT4dU1VNuopS9ZxE=; b=iO//nQ+iV4crsKKX1bSkQLouIVP9L3kGGvCyUOrfEVC/ABnxdzydOXFDxfCQJZUyHRBqmS QayrPxETnpMnkq5DIzIoLRoy5KZO0MsYSLheAbq/3vraantI7BuCutxx/FRoH67+btWTad A7d6C0fJVvwdHBEeeicn3/C17EWPqYImYdykFDj15xvbzlJMK7FD8TwCfEBmJm6ZqYw+Ul doBeEI5uK6ziV7YZJFUakuqx2miQ2RR0b2qUyw/lLLZtEZQKhNxJOVY/WT9ek9Teuh9QvK XEiVV0bU9uAH/6shnWHzU3j9IRJkC7u5PbGARwfrkB6W3/GkXxzlBgVT786kFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1692178242; a=rsa-sha256; cv=none; b=PsqErimrUZlO0FuWIXS1cdp46ETgXhI4+uIbVuEkVFoSXdYE6kKvjaEHCL2HOm8BH9VxcG SolRjT9eJGCQM4qNV3zw7swJUDhaiMcBeQVADNrCzsBDj7au27MtMX4AQayzsuxSt73h9U ZjgkwgPLqJRkWZbCg3C8zwUaKqAewjS8FBxqiZKWptilSK+Cjw+Pv+nTyDr0XaKaYxFDvE 11R9ro27xl+FdpGuBgAtVciMvk4njpBOOhnc76ffJgv0vGfG4fMl4qpNFy6GhbQS21XcP/ xL0Y4cbxJCJqhhbi1O8tenBNTDYoNDFf98aA5rfe17iW19GQc2FJIJb8XSlaKw== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qWCrK-0001Ym-4c; Wed, 16 Aug 2023 05:30:35 -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 1qWCqo-0001T7-Tq for guix-patches@gnu.org; Wed, 16 Aug 2023 05:30:05 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qWCqo-0000aC-Ko for guix-patches@gnu.org; Wed, 16 Aug 2023 05:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qWCqo-0006Jl-El for guix-patches@gnu.org; Wed, 16 Aug 2023 05:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65335] [PATCH 1/4] file-systems: canonicalize-device-name: Ignore the "none" case. References: In-Reply-To: Resent-From: Nicolas Graves Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 16 Aug 2023 09:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65335 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65335@debbugs.gnu.org Cc: ngraves@ngraves.fr Received: via spool by 65335-submit@debbugs.gnu.org id=B65335.169217819724249 (code B ref 65335); Wed, 16 Aug 2023 09:30:02 +0000 Received: (at 65335) by debbugs.gnu.org; 16 Aug 2023 09:29:57 +0000 Received: from localhost ([127.0.0.1]:38845 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWCqi-0006J2-KN for submit@debbugs.gnu.org; Wed, 16 Aug 2023 05:29:56 -0400 Received: from 4.mo581.mail-out.ovh.net ([178.32.122.254]:43701) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qWCqg-0006Is-FV for 65335@debbugs.gnu.org; Wed, 16 Aug 2023 05:29:55 -0400 Received: from director6.ghost.mail-out.ovh.net (unknown [10.109.138.83]) by mo581.mail-out.ovh.net (Postfix) with ESMTP id 43F2E26ECB for <65335@debbugs.gnu.org>; Wed, 16 Aug 2023 09:29:53 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-fwpb5 (unknown [10.111.208.172]) by director6.ghost.mail-out.ovh.net (Postfix) with ESMTPS id EB2C51FDDB; Wed, 16 Aug 2023 09:29:52 +0000 (UTC) Received: from ngraves.fr ([37.59.142.97]) by ghost-submission-6684bf9d7b-fwpb5 with ESMTPSA id 7GxGMhCX3GSZWQMAFOcv1w (envelope-from ); Wed, 16 Aug 2023 09:29:52 +0000 X-OVh-ClientIp: 81.67.140.142 Date: Wed, 16 Aug 2023 11:29:26 +0200 Message-ID: <344951a96d504fb86db43c79262739f5a7c086bb.1692178169.git.ngraves@ngraves.fr> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 10885481777719075554 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: 0 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedruddtledgudeiucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucenucfjughrpefhvfevufffkffoggfgsedtkeertdertddtnecuhfhrohhmpefpihgtohhlrghsucfirhgrvhgvshcuoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqnecuggftrfgrthhtvghrnhepkeffgeetfffgffejgeejvdffgfdtvdeuueetgfefuedvjeegvdegjeejveeuueevnecukfhppeduvdejrddtrddtrddupdekuddrieejrddugedtrddugedvpdefjedrheelrddugedvrdeljeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeduvdejrddtrddtrddupdhmrghilhhfrhhomhepoehnghhrrghvvghssehnghhrrghvvghsrdhfrheqpdhnsggprhgtphhtthhopedupdhrtghpthhtohepieehfeefheesuggvsggsuhhgshdrghhnuhdrohhrghdpoffvtefjohhsthepmhhoheekuddpmhhouggvpehsmhhtphhouhht 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: Nicolas Graves X-ACL-Warn: , Nicolas Graves via Guix-patches From: Nicolas Graves 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: A8B124F030 X-Migadu-Scanner: mx1.migadu.com X-Spam-Score: -6.19 X-Migadu-Spam-Score: -6.19 X-TUID: DZufJUsUv/pP --- gnu/build/file-systems.scm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gnu/build/file-systems.scm b/gnu/build/file-systems.scm index 36a59f5f5c..e39bd31c3b 100644 --- a/gnu/build/file-systems.scm +++ b/gnu/build/file-systems.scm @@ -1021,8 +1021,8 @@ (define find-partition-by-luks-uuid (define (canonicalize-device-spec spec) "Return the device name corresponding to SPEC, which can be a , a -, or a string (typically a /dev file name or an nfs-root -containing ':/')." +, the string 'none' or another string (typically a /dev +file name or an nfs-root containing ':/')." (define max-trials ;; Number of times we retry partition label resolution, 1 second per ;; trial. Note: somebody reported a delay of 16 seconds (!) before their @@ -1046,8 +1046,8 @@ (define (canonicalize-device-spec spec) (match spec ((? string?) - (if (string-contains spec ":/") - spec ; do not resolve NFS devices + (if (or (string-contains spec ":/") (string=? spec "none")) + spec ; do not resolve NFS / tmpfs devices ;; Nothing to do, but wait until SPEC shows up. (resolve identity spec identity))) ((? file-system-label?) base-commit: 1a92b3f43c280f143b00f8bb95a173fb85e52664 -- 2.41.0