From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 8GC/DTuAdWFtrwAAgWs5BA (envelope-from ) for ; Sun, 24 Oct 2021 17:48:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id QNxmCTuAdWF8SQAA1q6Kng (envelope-from ) for ; Sun, 24 Oct 2021 15:48:11 +0000 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 B0795A437 for ; Sun, 24 Oct 2021 17:48:10 +0200 (CEST) Received: from localhost ([::1]:33800 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mefjF-00038k-3j for larch@yhetil.org; Sun, 24 Oct 2021 11:48:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37886) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mefj8-00038U-9v for guix-patches@gnu.org; Sun, 24 Oct 2021 11:48:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:57281) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mefj8-0002AL-1C for guix-patches@gnu.org; Sun, 24 Oct 2021 11:48:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mefj7-0006kr-W3 for guix-patches@gnu.org; Sun, 24 Oct 2021 11:48:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51346] [PATCH 1/1] gnu: system: Add support for swap dependencies and flags Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sun, 24 Oct 2021 15:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51346 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Josselin Poiret Cc: 51346@debbugs.gnu.org X-Debbugs-Original-Cc: 51346@debbugs.gnu.org, guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163509043425751 (code B ref -1); Sun, 24 Oct 2021 15:48:01 +0000 Received: (at submit) by debbugs.gnu.org; 24 Oct 2021 15:47:14 +0000 Received: from localhost ([127.0.0.1]:40594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mefiM-0006hG-Es for submit@debbugs.gnu.org; Sun, 24 Oct 2021 11:47:14 -0400 Received: from lists.gnu.org ([209.51.188.17]:35994) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mefiL-0006h9-Jt for submit@debbugs.gnu.org; Sun, 24 Oct 2021 11:47:13 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37830) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mefiK-0002BP-Aw for guix-patches@gnu.org; Sun, 24 Oct 2021 11:47:13 -0400 Received: from tobias.gr ([2a02:c205:2020:6054::1]:34164) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mefiH-0001aA-05 for guix-patches@gnu.org; Sun, 24 Oct 2021 11:47:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; s=2018; bh=e01sQtIq9GhN+ GOzfPuzTEqI9SQq2pVB9TlZz2e/BOw=; h=in-reply-to:date:subject:cc:to: from:references; d=tobias.gr; b=XCyVpRAHcNlPqZ+4UdlQldPhskcND2QlieYgPX zmK3KjhRcco1YZPwsitFAw3Fi6dg7UwlmE/NTvuYxNhtoVZvnjc0LoST/k5u+KZvhrXX0u BnHOujDfCjsSyle8rWdMTMYPv1YM818JWAZEWQvjg044klWylBa9M7VMWCIJ5XJVtMzJOV A9q05O4PccuISz78SFWCJWqfGRM30OvaNAZdx8GyVvp0Bcl/n/kBG8zrqK/AA4hXeB9saR uklwRTXQBg6ytbKsGCPid1ggDce3DrG942Yi5ZrVJL8DJuowvVUKsCJmjjacr5lg43ZnPZ nD8ZlR5Srcf2rSjn81Ezm0Vw== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 1c01c2db (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Sun, 24 Oct 2021 15:47:01 +0000 (UTC) References: <87fsssdqg2.fsf@jpoiret.xyz> <87cznwdqcr.fsf@jpoiret.xyz> Date: Sun, 24 Oct 2021 15:58:56 +0200 In-reply-to: <87cznwdqcr.fsf@jpoiret.xyz> BIMI-Selector: v=BIMI1; s=default; Message-ID: <87tuh6ifwe.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=2a02:c205:2020:6054::1; envelope-from=me@tobias.gr; helo=tobias.gr 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_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" Reply-to: Tobias Geerinckx-Rice X-ACL-Warn: , Tobias Geerinckx-Rice via Guix-patches From: Tobias Geerinckx-Rice via Guix-patches via X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1635090490; 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: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=e01sQtIq9GhN+GOzfPuzTEqI9SQq2pVB9TlZz2e/BOw=; b=gzg6BJDB4g/iT5ObxQCFGKlQfkm9Hp8W9oKYPsBGGCP1FUyzfYirXCoOZq14ephkA2YYws pkzSzuLUtwi8FxZHK7w9bKnrdp+K4cqpPElalHeF472gIvdVB7/X/xqUT9+93B0H5EfpBP SpAXR/8u+i+NU4ppSvwPDtp7YWB79Bq0vviXo3vgJ33gBPCn0wzCY5C9EoDa72jzOJ4pJW w0SD1KtBjAwPvBD2+Bj2OIHhl2EX11RcJtmRJt46Htrn4kthkogx4QYxbV9PfKqUThBLFK wod3QK+gA3Ez83MeM5bvw4xBLPiviF0bh2nD4B1yEvGX7C4Fd57vk0VzQ25CxA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1635090490; a=rsa-sha256; cv=none; b=d94jgPK/hOm9a3FdbT/rpdXHzA3DOGOb+5WtCshgkk/M8nwXvNRA5aJ7OTLeTq3k9JEp+u fPDAJugTNTw5qMxIuFzxiRlVaPRJJF3Qzvn10kcCe1YHWKcL/l7HScXS+6Yry62m719HFw CLnrXFBzXvlD9Nl9h13REGySJazbsZTAArfvpQ6EwKmCSySLx5N9fSjJYuYPc7PhA+DlAs NtLo/jKU8qwYBNScpcgHdWFszNEajdLklH+5E5yBPpxQPgCUHawV+N3VX8UsnORh0H/8vj cYGoRbCmabzOL7Ry+uZXw5As0FpAM/93iLAF7sOHC9u8lOtV9k3Owk5Q42M6oA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=XCyVpRAH; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -4.52 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=tobias.gr header.s=2018 header.b=XCyVpRAH; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: B0795A437 X-Spam-Score: -4.52 X-Migadu-Scanner: scn0.migadu.com X-TUID: Kt5/EZqLnQQY --=-=-= Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Oh no, he's back. With another annoying question: why don't we drop the=20 whole swap-partition/swap-file dichotomy? The distinction is=20 artificial insofar as Linux doesn't make one. Which end is supposed to explode if you (swap-partition (device "/home/nckx/swap")) (swap-file (name "/dev/sda2")) ? What real-world drawback(s) do you see to (swap (space "/home/nckx/swap")) (swap (space "/dev/sda2")) (swap (space (uuid "ab-c-d-e-fgh"))) (swap (space (file-system-label "best-swaps"))) naming aside? Josselin Poiret via Guix-patches via =E5=86=99=E9=81=93=EF=BC=9A > +(define (swap-partition->service-name spartition) Nitpick: ->shepherd-service-name just for similarity to=20 s. Aside, when I try to apply your third manual example, I get: guix system: error: service 'swap-/dev/sda2' requires 'file-system-/', which is not provided by any service Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIMEARYKACsWIQT12iAyS4c9C3o4dnINsP+IT1VteQUCYXWAAQ0cbWVAdG9iaWFz LmdyAAoJEA2w/4hPVW15nCsBAKa+1VcqpB7zlZNjfarJi8/CD0in0524AduTy8um qMa3AP9B8iZ3k3oGQa1mXdPy8nhTdyeuKDrHO1HitvQtHBTAAw== =fUdI -----END PGP SIGNATURE----- --=-=-=--