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 ms11 with LMTPS id 3DBMOGUVPmDIXQAA0tVLHw (envelope-from ) for ; Tue, 02 Mar 2021 10:37:25 +0000 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 cImvM2UVPmDbcwAA1q6Kng (envelope-from ) for ; Tue, 02 Mar 2021 10:37:25 +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 D4B5024294 for ; Tue, 2 Mar 2021 11:37:24 +0100 (CET) Received: from localhost ([::1]:49688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lH2P5-0006rk-53 for larch@yhetil.org; Tue, 02 Mar 2021 05:37:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:57238) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lH2Nr-0005YY-Mo for bug-guix@gnu.org; Tue, 02 Mar 2021 05:36:11 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:40370) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lH2Nn-0004xB-2B for bug-guix@gnu.org; Tue, 02 Mar 2021 05:36:06 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lH2Nm-00025d-VA for bug-guix@gnu.org; Tue, 02 Mar 2021 05:36:02 -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: Shyam Saran Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 02 Mar 2021 10:36:02 +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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 46555-submit@debbugs.gnu.org id=B46555.16146813147959 (code B ref 46555); Tue, 02 Mar 2021 10:36:02 +0000 Received: (at 46555) by debbugs.gnu.org; 2 Mar 2021 10:35:14 +0000 Received: from localhost ([127.0.0.1]:51915 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lH2N0-00024J-1X for submit@debbugs.gnu.org; Tue, 02 Mar 2021 05:35:14 -0500 Received: from mail-ed1-f68.google.com ([209.85.208.68]:43293) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lH2My-00023l-5r for 46555@debbugs.gnu.org; Tue, 02 Mar 2021 05:35:12 -0500 Received: by mail-ed1-f68.google.com with SMTP id bd6so11289731edb.10 for <46555@debbugs.gnu.org>; Tue, 02 Mar 2021 02:35:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=RbipCNmpRcembt6AqDmgQOj50UjZ/qaBfGzNybLNKWw=; b=cpdxJcBlKYSvOIB8SVZ10hchGEqJpMLDdFask6RaWaWDFYRUAVzC3HhwtE7Z+xzmbK WcFDnIq2VBU+Du1pT5d/DIBwAIHWYDAZtnBptdzIKKLPcfuteZwhY9gA9x2LGmkZwIGm M81U+TjwtFI2tz3ph6759aPa+K4ouyKexXG2aoTnIPlbFYBUWZam5J/xuQghZUnPEeJm RhNue08ZL+6waoKp5+cjamNodRVBvm+OMTVBRIZH5x4rmcvIo7Iz5/dZDmv2+pJJfF/w T2gUcJlTPRsHTmgznyViryCT3DSPLojtWIM1qqV5+lLBhIV3CwRihjFpaZVk4S2go2My ik+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=RbipCNmpRcembt6AqDmgQOj50UjZ/qaBfGzNybLNKWw=; b=c1Vvrgm3HXxQqpQ/MVQwxw9pGiWkUm3eU9Sh24qTHOA/1Uwv++v4jxThgQ1B04ZOPH k9fjLXcsT6A3rwt4YUJfIbfTC1C+J05eVmX/XSOeCt9IQXOdIITELXMEY4sCQ45MEDar 5Ztgn7ZUKU+1+5D31mXAJ7q408Mhch6SJdjatO2v7tqgefT7E0oX21GGuP18VBj++vEF wOCUgecDyibEzCo8CJA+JbQPZh10nVnzUn4SWqKk1sq41y682wjVVv7TePyXfjE6mZ5l 4WFcwNKH1IlD4FD+c2sAYcWIq2W2W9KdJQJzTN5vVcn6dTJ7gS3wjtYbejWSB+iWL0pN 0erw== X-Gm-Message-State: AOAM5338PEB06DD6UHEF5pf+G2ReF5ZdE4Ew01Z6Wy03EyMzdcydb2/t 9skUYRoXXNpEntirQiMRSZv58DCbVrlrke1T/4Q= X-Google-Smtp-Source: ABdhPJwIv94heTgFvirj8gQFf0WuwV+/z513JVl3dOMQyBKud/qEpVzYIYr8xNmqCUq0rnFM3EeDsgL0sm/PFuaM+c0= X-Received: by 2002:a05:6402:1aca:: with SMTP id ba10mr19943643edb.6.1614681306503; Tue, 02 Mar 2021 02:35:06 -0800 (PST) MIME-Version: 1.0 References: <875z2ke9xe.fsf@gnu.org> <8735xkz3m2.fsf@gnu.org> <875z2bw7h2.fsf@gnu.org> In-Reply-To: <875z2bw7h2.fsf@gnu.org> From: Shyam Saran Date: Tue, 2 Mar 2021 16:04:55 +0530 Message-ID: Content-Type: multipart/alternative; boundary="000000000000b31cf105bc8b49ed" 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=1614681445; 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: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=RbipCNmpRcembt6AqDmgQOj50UjZ/qaBfGzNybLNKWw=; b=pS973Muo+Lgo6z+LPHGIRECZ52xDNpKamsq25FczENrKh5ade4b7qcIq6nJZlVTA9w55UB dECRvqAvgfW14D0wVEUm5A9W/hG88sl6xWpXmAFm0ZBnM6GadMUkH3a0sKqEy0R08A3iD0 X05cJ/1zXkr58iIRcc8Y8gQqDsVexmoAb/ad/oVMswDmEXxleEu3vRdGYxX5B0DUUqUNGs 9azu+OcqC14xo1b5iQAltRhuYWxMTcXj1AK3ATaVKkzXCMUgn77Rg7eX/0uHEIrrGhnpV1 2XE7Pwio0HK7SrtBOJkoKb4kNX/Xcc2VDB3j0gV4GOdeQJ2D1SlSzSn050jUog== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1614681445; a=rsa-sha256; cv=none; b=RZoG2ZlMLB+OvB8dmilGbnQB23WwB4q08AkUuyj1DX9VfJwQSoHkQkVptbsuKAurFDRlO0 fI3K4dxBDlJqLNRCuZygAW8wwbB5ojKkuhhYGbGW/s12M2t6trzCA7li05md2AhOZilt1x 5zIAG4RLhxqx6CsriO+y2vSavcYE6KK8T50B3X/0b8iUWesf82/PAQZHiyJqPCkGWRu+iX L5/wbGU/MQw2d0JH6HHL10oUo2vKGezp7qicu5FNCM6ABEwGW7MxtqLQo5jP/O34YsafCs 2Pwbwb2vJgRP/7IJghuXrwz0U7OkHsK02bB/lRcneNXc5VubpGCJYq9bRGaIUQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=cpdxJcBl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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: -1.26 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=cpdxJcBl; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=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-Queue-Id: D4B5024294 X-Spam-Score: -1.26 X-Migadu-Scanner: scn1.migadu.com X-TUID: gNrkEwaVZzW5 --000000000000b31cf105bc8b49ed Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable As mentioned I had removed all dependency for root "/" fs but result is same $ guix system build ~/tmp/config.scm 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 Then again removed all dependencies from all fs /var /gnu /tmp etc But the result is the same. $ guix system build ~/tmp/config.scm 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 Thanks On Mon, 1 Mar 2021 at 14:56, Ludovic Court=C3=A8s wrote: > 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-sw= ap=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 al= l 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= depends on > =E2=80=98device-mapping-guix-swap=E2=80=99. > > HTH! > > Ludo=E2=80=99. > --000000000000b31cf105bc8b49ed Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
As mentioned I had removed= all dependency for root "/" fs

but result is same <= br>
$ guix =C2=A0system =C2=A0 build ~/tmp/config.scm
guix system: wa= rning: the following groups appear more than once: users
guix system: er= ror: service 'swap-/dev/mapper/guix-swap' requires 'device-mapp= ing-guix-swap', which is not provided by any service

Then again removed all dependencies from all fs /var /gnu /tmp etc
But the result is the same.

$ guix =C2=A0system =C2=A0 b= uild ~/tmp/config.scm
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 pr= ovided by any service


Thanks


On Mon, 1 Mar 2021 at 14:56, Ludovic Court=C3=A8s <= ludo@gnu.org> wrote:
Hi Shyam,

Shyam Saran <syamsaran12345@gmail.com> skribis:

> Result of application of system build command
>
> $ guix=C2=A0 system=C2=A0 =C2=A0build ~/tmp/config.scm
>
>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 2s
> guix system: warning: the following groups appear more than once: user= s
> guix system: error: service 'swap-/dev/mapper/guix-swap' requi= res
> 'device-mapping-guix-swap', which is not provided by any servi= ce

The problem here is that you had:

=C2=A0 (file-system
=C2=A0 =C2=A0 (mount-point "/")
=C2=A0 =C2=A0 ;; =E2=80=A6
=C2=A0 =C2=A0 (needed-for-boot? #t)
=C2=A0 =C2=A0 (dependencies %localmachine-mapped-devices))

All the needed-for-boot file systems had all the mapped devices in
=E2=80=98dependencies=E2=80=99.=C2=A0 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.=C2=A0 Since they have /dev/mapper/=E2=80=A6 as their =E2=80=99devi= ce=E2=80=99, you don=E2=80=99t
need =E2=80=98dependencies=E2=80=99: it=E2=80=99s automatically inferred.= =C2=A0 If, after this
change, you run:

=C2=A0 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.
--000000000000b31cf105bc8b49ed--