bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#46555: LVM swap continuously fails guix system: error: service 'swap


From: Ludovic Courtès
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
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]