Subject: bug#46555: closed (Re: 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)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 08 Mar 2021 13:29:02 +0000

Your bug report

#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

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
46555: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=46555
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: 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
From: Ludovic Courtès <[email-masked]>
To: Shyam Saran <[email-masked]>
Cc: [email-masked]
Date: Mon, 08 Mar 2021 14:28:12 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Shyam Saran <[email-masked]> skribis:

> Sorry again, it is excellently working

Great, thanks for checking!

Ludo’.

Subject: 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
From: Shyam Saran <[email-masked]>
To: [email-masked]
Date: Tue, 16 Feb 2021 15:41:49 +0530
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

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))))
           '()))

at
https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/base.scm#n2171

Thanks
/shyam