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

* Re: Possible bug in configuration-system?
  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 20:20   ` jbranso
  0 siblings, 2 replies; 10+ messages in thread
From: Raghav Gururajan @ 2021-01-26 15:35 UTC (permalink / raw)
  To: tsymsh; +Cc: guix-devel

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.


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

* Re: Possible bug in configuration-system?
  2021-01-26 15:35 ` Raghav Gururajan
@ 2021-01-26 16:14   ` Mikhail Tsykalov
  2021-01-26 16:18     ` Raghav Gururajan
  2021-01-26 20:20   ` jbranso
  1 sibling, 1 reply; 10+ messages in thread
From: Mikhail Tsykalov @ 2021-01-26 16:14 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: guix-devel

Hi Raghav,

Example in the manual is wrong, it should say 'targets' instead of 'target'.

Regards,
Mikhail.

On 26.01.2021 20:35, Raghav Gururajan wrote:
> 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.


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

* Re: Possible bug in configuration-system?
  2021-01-26 16:14   ` Mikhail Tsykalov
@ 2021-01-26 16:18     ` Raghav Gururajan
  2021-01-26 16:35       ` Raghav Gururajan
  0 siblings, 1 reply; 10+ messages in thread
From: Raghav Gururajan @ 2021-01-26 16:18 UTC (permalink / raw)
  To: Mikhail Tsykalov; +Cc: guix-devel

Hi Mikhail!

> Example in the manual is wrong, it should say 'targets' instead of 
> 'target'.

Ah! So there is a separate field called 'targets', where `(list` is 
supposed to be used?

Regards,
RG.


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

* Re: Possible bug in configuration-system?
  2021-01-26 16:18     ` Raghav Gururajan
@ 2021-01-26 16:35       ` Raghav Gururajan
  0 siblings, 0 replies; 10+ messages in thread
From: Raghav Gururajan @ 2021-01-26 16:35 UTC (permalink / raw)
  To: Mikhail Tsykalov; +Cc: guix-devel

Hi Mikhail!

>> Example in the manual is wrong, it should say 'targets' instead of 
>> 'target'.
> 
> Ah! So there is a separate field called 'targets', where `(list` is 
> supposed to be used?

Yep! It worked. Thanks a lot.

Regards,
RG.


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

* Re: Possible bug in configuration-system?
  2021-01-26 15:35 ` Raghav Gururajan
  2021-01-26 16:14   ` Mikhail Tsykalov
@ 2021-01-26 20:20   ` jbranso
  2021-01-28 14:18     ` Ludovic Courtès
  1 sibling, 1 reply; 10+ messages in thread
From: jbranso @ 2021-01-26 20:20 UTC (permalink / raw)
  To: Mikhail Tsykalov, Raghav Gururajan; +Cc: guix-devel

I volunteer as tribute to send a patch to fix the manual!

January 26, 2021 11:31 AM, "Mikhail Tsykalov" <tsymsh@gmail.com> wrote:

> Hi Raghav,
> 
> Example in the manual is wrong, it should say 'targets' instead of 'target'.
> 
> Regards,
> Mikhail.
> 
> On 26.01.2021 20:35, Raghav Gururajan wrote:
> 
>> 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.


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

* Re: Possible bug in configuration-system?
  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.
  0 siblings, 1 reply; 10+ messages in thread
From: Ludovic Courtès @ 2021-01-28 14:18 UTC (permalink / raw)
  To: jbranso; +Cc: guix-devel, Raghav Gururajan, Mikhail Tsykalov

jbranso@dismail.de skribis:

> I volunteer as tribute to send a patch to fix the manual!

Please do! :-)


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

* Re: Possible bug in configuration-system?
  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.
  0 siblings, 2 replies; 10+ messages in thread
From: jbranso--- via Development of GNU Guix and the GNU System distribution. @ 2021-01-28 16:59 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel, Raghav Gururajan, Mikhail Tsykalov

Ludovic Courtès <ludo@gnu.org> writes:

> jbranso@dismail.de skribis:
>
>> I volunteer as tribute to send a patch to fix the manual!
>
> Please do! :-)

Here it is!

http://issues.guix.gnu.org/46130

Thanks!

--
Joshua Branson (joshuaBPMan in #guix)
Sent from Emacs and Gnus
  https://gnucode.me
  https://video.hardlimit.com/accounts/joshua_branson/video-channels
  https://propernaming.org
  "You can have whatever you want, as long as you help
enough other people get what they want." - Zig Ziglar


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

* Re: Possible bug in configuration-system?
  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.
  1 sibling, 0 replies; 10+ messages in thread
From: Raghav Gururajan @ 2021-01-28 18:25 UTC (permalink / raw)
  To: jbranso; +Cc: guix-devel, Mikhail Tsykalov

Hi Joshua!

> Here it is!
> 
> http://issues.guix.gnu.org/46130

Thanks so much.

Regards,
RG.


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

* Re: Possible bug in configuration-system? and an off topic quotation
  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         ` jbranso--- via Development of GNU Guix and the GNU System distribution.
  1 sibling, 0 replies; 10+ messages in thread
From: jbranso--- via Development of GNU Guix and the GNU System distribution. @ 2021-01-28 18:49 UTC (permalink / raw)
  To: Raghav Gururajan; +Cc: guix-devel, Mikhail Tsykalov

You're welcome!

"Happy Hunger Games! And may the odds be ever in your favor."

January 28, 2021 1:26 PM, "Raghav Gururajan" <rg@raghavgururajan.name> wrote:

> Hi Joshua!
> 
>> Here it is!
>> http://issues.guix.gnu.org/46130
> 
> Thanks so much.
> 
> 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).