From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id KGfFAHCzPGBeSQAA0tVLHw (envelope-from ) for ; Mon, 01 Mar 2021 09:27:12 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id qPpMOG+zPGCHBAAA1q6Kng (envelope-from ) for ; Mon, 01 Mar 2021 09:27: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 E8C9927984 for ; Mon, 1 Mar 2021 10:27:10 +0100 (CET) Received: from localhost ([::1]:50244 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGepY-0005Vp-4w for larch@yhetil.org; Mon, 01 Mar 2021 04:27:08 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:56954) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lGepR-0005Vb-VI for bug-guix@gnu.org; Mon, 01 Mar 2021 04:27:01 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:36567) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lGepR-0002Yo-Nh for bug-guix@gnu.org; Mon, 01 Mar 2021 04:27:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lGepR-0003ga-LA for bug-guix@gnu.org; Mon, 01 Mar 2021 04:27:01 -0500 X-Loop: help-debbugs@gnu.org Subject: bug#46555: LVM swap continuously fails guix system: error: service 'swap-/dev/mapper/guix-swap' requires 'device-mapping-guix-swap', which is not provided by any service Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Mon, 01 Mar 2021 09:27:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 46555 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Shyam Saran Received: via spool by 46555-submit@debbugs.gnu.org id=B46555.161459077014092 (code B ref 46555); Mon, 01 Mar 2021 09:27:01 +0000 Received: (at 46555) by debbugs.gnu.org; 1 Mar 2021 09:26:10 +0000 Received: from localhost ([127.0.0.1]:48111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGeoc-0003fD-Ga for submit@debbugs.gnu.org; Mon, 01 Mar 2021 04:26:10 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38834) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lGeob-0003f0-6E for 46555@debbugs.gnu.org; Mon, 01 Mar 2021 04:26:09 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]:41644) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lGeoV-0001uo-Vk; Mon, 01 Mar 2021 04:26:03 -0500 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=50002 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1lGeoV-0002TM-4U; Mon, 01 Mar 2021 04:26:03 -0500 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <875z2ke9xe.fsf@gnu.org> <8735xkz3m2.fsf@gnu.org> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 11 =?UTF-8?Q?Vent=C3=B4se?= an 229 de la =?UTF-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Mon, 01 Mar 2021 10:26:01 +0100 In-Reply-To: (Shyam Saran's message of "Fri, 26 Feb 2021 13:38:03 +0530") Message-ID: <875z2bw7h2.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 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: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 46555@debbugs.gnu.org Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: "bug-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1614590831; h=from:from:sender:sender: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; bh=rTbLa45yKDttaEHw3b2aQOaxAY9n3IgUZhIuJY/22d8=; b=uejO0Mb29TGreBk/AUbsbSga4EFgpEZn5bBkVXowLG5VnmiaCz+jByhQnG5oI8ALbz4oBZ XJMH+iCIh1Ddkq1Exape26p5XHoSnQZLXn+Tc9ny2jkYkohblMUb4MbR9GH9f47MPM36/L +x8JjjyfMEuc6uQ+dcGKhWcwP7RZ06Oklu3VUxCgqkrFV/HZFKq33kqgKUCvW5tGUZCFcY zrfU2XrkOPO/28asJISa1/TQWqqda7ygMMEDbVr8VrxSGafEhfOHiM3C/v/sb3MQ0ItsWa 3oxBuHv85nuQu4TEM0hIBSyVlM/VXCO8Q98KtTG67tlBH8uEg8nnluej6O6mZA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614590831; a=rsa-sha256; cv=none; b=YweuHM/kspagNkcB+P5oNOMWNtYgPmFkhFZaDrGYtXIx2WiuC/t1FCSKwA5EVisOPptvIE s6YXNqbWAqWQ1pUCPw9ka5dvnBmpOBm21JCDxb8BujNIkN9XXMXq2/PTwHia6w3OpkwL1I +qeu5zoETa9AuuFN3UZnwC/G6UOmLIuZgShJFfidfsCtPpOldmy0RHkMuMoJOaQfGZDgOe cGOfeCsTWiGOOvsAkLi05kLCIhvtzeyNpkdME1eA1u1ALNZZ9z7DviiXxbrz/UqfD1lpRu uQM2xONmyFy183XxZR4gA+3mh/r3ffqMfmOLMgXH5IAvIGEdIp0GAJXtiupEFA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Spam-Score: -2.87 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of bug-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=bug-guix-bounces@gnu.org X-Migadu-Queue-Id: E8C9927984 X-Spam-Score: -2.87 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8iOEcBeJlj8/ Hi Shyam, Shyam Saran skribis: > Result of application of system build command > > $ guix system build ~/tmp/config.scm > > 2s > guix system: warning: the following groups appear more than once: users > guix system: error: service 'swap-/dev/mapper/guix-swap' requires > 'device-mapping-guix-swap', which is not provided by any service The problem here is that you had: (file-system (mount-point "/") ;; =E2=80=A6 (needed-for-boot? #t) (dependencies %localmachine-mapped-devices)) All the needed-for-boot file systems had all the mapped devices in =E2=80=98dependencies=E2=80=99. Thus, no =E2=80=98device-mapping-guix-swap= =E2=80=99 Shepherd service was created, because that device mapping was needed at boot. The solution is to remove the =E2=80=98dependencies=E2=80=99 field for all = your file systems. Since they have /dev/mapper/=E2=80=A6 as their =E2=80=99device=E2= =80=99, you don=E2=80=99t need =E2=80=98dependencies=E2=80=99: it=E2=80=99s automatically inferred. = If, after this change, you run: guix system shepherd-graph /tmp/config.scm| xdot - you can see that the =E2=80=98swap-/dev/mapper/guix-swap=E2=80=99 service d= epends on =E2=80=98device-mapping-guix-swap=E2=80=99. HTH! Ludo=E2=80=99.