unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Raghav Gururajan <rg@raghavgururajan.name>
To: tsymsh@gmail.com
Cc: guix-devel@gnu.org
Subject: Re: Possible bug in configuration-system?
Date: Tue, 26 Jan 2021 10:35:43 -0500	[thread overview]
Message-ID: <076e695c-aaaa-d523-ec59-f73df342ab5b@raghavgururajan.name> (raw)
In-Reply-To: <b2d2af58-39cb-9f78-1930-dc0c35f7b557@raghavgururajan.name>

Hi Mikhail!

I just noticed the commit 
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=a9a2fdaabcc78e7a54d9a6bcfa4ee3de308e9a90.

Do you have any clue regarding the following issue?

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


  reply	other threads:[~2021-01-26 15:37 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-26 12:31 Possible bug in configuration-system? Raghav Gururajan
2021-01-26 15:35 ` Raghav Gururajan [this message]
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.

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=076e695c-aaaa-d523-ec59-f73df342ab5b@raghavgururajan.name \
    --to=rg@raghavgururajan.name \
    --cc=guix-devel@gnu.org \
    --cc=tsymsh@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).