From: "Ludovic Courtès" <ludo@gnu.org>
To: Shyam Saran <syamsaran12345@gmail.com>
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: Mon, 01 Mar 2021 10:26:01 +0100 [thread overview]
Message-ID: <875z2bw7h2.fsf@gnu.org> (raw)
In-Reply-To: <CABVJY8oZz2RixEx0SOgtWWOD+m0yo5sjrdpnK8pDEcLx-+coxA@mail.gmail.com> (Shyam Saran's message of "Fri, 26 Feb 2021 13:38:03 +0530")
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’.
next prev parent reply other threads:[~2021-03-01 9:27 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 [this message]
2021-03-02 10:34 ` Shyam Saran
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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875z2bw7h2.fsf@gnu.org \
--to=ludo@gnu.org \
--cc=46555@debbugs.gnu.org \
--cc=syamsaran12345@gmail.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).