unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
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, 22 Feb 2021 10:19:57 +0100	[thread overview]
Message-ID: <875z2ke9xe.fsf@gnu.org> (raw)
In-Reply-To: <CABVJY8qvV5DkdaT_sEaU+g1E5NWNd7r3_CAYXUPd=400Ej+8ug@mail.gmail.com> (Shyam Saran's message of "Tue, 16 Feb 2021 15:41:49 +0530")

Hi Shyam,

Shyam Saran <syamsaran12345@gmail.com> skribis:

> LVM/Device Mapper swap continuously fails for os configuration
>
>
> with
>
>   guix system: error: service 'swap-/dev/mapper/guix-swap' requires
> 'device-mapping-guix-swap', which is not provided by any service
>
>
>
> which originates from code
>
>
>
> (define swap-service-type
>   (shepherd-service-type
>    'swap
>    (lambda (device)
>      (define requirement
>        (if (and (string? device)
>                 (string-prefix? "/dev/mapper/" device))
>            (list (symbol-append 'device-mapping-
>                                 (string->symbol (basename device))))
>            '()))

You could need to define an LVM “device mapping” that provides
/dev/mapper/guix-swap:

  https://guix.gnu.org/manual/devel/en/html_node/Mapped-Devices.html#index-lvm_002ddevice_002dmapping

If you did already, could you send your complete config so we can have a
look?

Thanks,
Ludo’.




  reply	other threads:[~2021-02-22  9:21 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 [this message]
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
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=875z2ke9xe.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).