unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Possible bug in configuration-system?
@ 2021-01-26 12:31 Raghav Gururajan
  2021-01-26 15:35 ` Raghav Gururajan
  0 siblings, 1 reply; 10+ messages in thread
From: Raghav Gururajan @ 2021-01-26 12:31 UTC (permalink / raw)
  To: guix-devel

Hello Guix!

As mentioned in this page of manual 
(http://guix.gnu.org/manual/en/html_node/Mapped-Devices.html), for 
lvm-device-mapping, I did the following in my config.scm:

```
  (mapped-devices
   (list
    (mapped-device
     (source
      (uuid "47bb32fe-da7f-4eb6-a11d-ae07a3a2e6f8"))
     (target "secondary")
     (type luks-device-mapping))
    (mapped-device
     (source "secondary")
     (target (list "secondary-root" "secondary-home"))
     (type lvm-device-mapping))))
```

When I did `guix system reconfigure`, I got the following error:

```
Backtrace:
In ice-9/boot-9.scm:
   1736:10 19 (with-exception-handler _ _ #:unwind? _ # _)
   1731:15 18 (with-exception-handler #<procedure 7fe09e8b7930 at ic…> …)
In guix/scripts/system.scm:
    1391:8 17 (_)
In guix/status.scm:
     780:4 16 (call-with-status-report _ _)
In guix/scripts/system.scm:
    1219:4 15 (_)
In ice-9/boot-9.scm:
   1736:10 14 (with-exception-handler _ _ #:unwind? _ # _)
In guix/store.scm:
    636:37 13 (thunk)
    1305:8 12 (call-with-build-handler #<procedure 7fe09e672720 at g…> …)
   2062:24 11 (run-with-store #<store-connection 256.99 7fe09786ab40> …)
In guix/scripts/system.scm:
   1243:15 10 (_ _)
     813:9  9 (perform-action reconfigure #<<operating-system> kerne…> …)
In gnu/system.scm:
   1312:26  8 (operating-system-bootcfg #<<operating-system> kernel:…> …)
    574:14  7 (operating-system-bootloader-crypto-devices #<<operatin…>)
In unknown file:
            6 (filter #<procedure 7fe09580d7a0 at gnu/system.scm:551…> …)
In gnu/system.scm:
    552:26  5 (_ _)
    528:17  4 (mapped-device-users #<<mapped-device> source: "second…> …)
In srfi/srfi-1.scm:
    586:17  3 (map1 (("secondary-root" "secondary-home")))
In unknown file:
            2 (string-append "/dev/mapper/" ("secondary-root" "seco…"))
In ice-9/boot-9.scm:
   1669:16  1 (raise-exception _ #:continuable? _)
   1669:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1669:16: In procedure raise-exception:
In procedure string-append: Wrong type (expecting string): 
("secondary-root" "secondary-home")
```

When I do the following in my config.scm, system reconfigure works fine:

```
  (mapped-devices
   (list
    (mapped-device
     (source
      (uuid "47bb32fe-da7f-4eb6-a11d-ae07a3a2e6f8"))
     (target "secondary")
     (type luks-device-mapping))
    (mapped-device
     (source "secondary")
     (target "secondary-root")
     (type lvm-device-mapping))))
```

So seems like listing more than one target causes the error. Is this a bug?

Regards,
RG.


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-01-28 18:50 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-26 12:31 Possible bug in configuration-system? Raghav Gururajan
2021-01-26 15:35 ` Raghav Gururajan
2021-01-26 16:14   ` Mikhail Tsykalov
2021-01-26 16:18     ` Raghav Gururajan
2021-01-26 16:35       ` Raghav Gururajan
2021-01-26 20:20   ` jbranso
2021-01-28 14:18     ` Ludovic Courtès
2021-01-28 16:59       ` jbranso--- via Development of GNU Guix and the GNU System distribution.
2021-01-28 18:25         ` Raghav Gururajan
2021-01-28 18:49         ` Possible bug in configuration-system? and an off topic quotation jbranso--- via Development of GNU Guix and the GNU System distribution.

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).