all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Shyam Saran <syamsaran12345@gmail.com>
To: "Ludovic Courtès" <ludo@gnu.org>
Cc: 46555@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
Date: Tue, 2 Mar 2021 16:04:55 +0530	[thread overview]
Message-ID: <CABVJY8r+L49O4gi3Z1Onf5UOHmuOZhWHFVsM-puwxeJsV0adxg@mail.gmail.com> (raw)
In-Reply-To: <875z2bw7h2.fsf@gnu.org>

[-- Attachment #1: Type: text/plain, Size: 2037 bytes --]

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ès <ludo@gnu.org> wrote:

> Hi Shyam,
>
> Shyam Saran <syamsaran12345@gmail.com> 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 "/")
>     ;; …
>     (needed-for-boot? #t)
>     (dependencies %localmachine-mapped-devices))
>
> All the needed-for-boot file systems had all the mapped devices in
> ‘dependencies’.  Thus, no ‘device-mapping-guix-swap’ Shepherd service
> was created, because that device mapping was needed at boot.
>
> The solution is to remove the ‘dependencies’ field for all your file
> systems.  Since they have /dev/mapper/… as their ’device’, you don’t
> need ‘dependencies’: it’s automatically inferred.  If, after this
> change, you run:
>
>   guix system shepherd-graph /tmp/config.scm| xdot -
>
> you can see that the ‘swap-/dev/mapper/guix-swap’ service depends on
> ‘device-mapping-guix-swap’.
>
> HTH!
>
> Ludo’.
>

[-- Attachment #2: Type: text/html, Size: 2744 bytes --]

  reply	other threads:[~2021-03-02 10:37 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-16 10:11 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 Shyam Saran
2021-02-22  9:19 ` Ludovic Courtès
2021-02-23 15:23   ` Shyam Saran
2021-02-25 13:19     ` Ludovic Courtès
2021-02-26  8:08       ` Shyam Saran
2021-03-01  9:26         ` Ludovic Courtès
2021-03-02 10:34           ` Shyam Saran [this message]
2021-03-02 10:42             ` Shyam Saran
2021-03-02 16:12               ` Shyam Saran
2021-03-04  7:22                 ` Shyam Saran
2021-03-08 13:28                   ` Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CABVJY8r+L49O4gi3Z1Onf5UOHmuOZhWHFVsM-puwxeJsV0adxg@mail.gmail.com \
    --to=syamsaran12345@gmail.com \
    --cc=46555@debbugs.gnu.org \
    --cc=ludo@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.