all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#54483: ‘guix system image’ chokes on host's /var
@ 2022-03-20 19:26 Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2022-03-20 19:57 ` Maxime Devos
  2022-04-07 16:45 ` Ludovic Courtès
  0 siblings, 2 replies; 5+ messages in thread
From: Tobias Geerinckx-Rice via Bug reports for GNU Guix @ 2022-03-20 19:26 UTC (permalink / raw)
  To: 54483

Guix,

I can't build the older installer image I want, ostensibly because my 
installed system is too new (anno-post-apteryx-versioning; no time to 
further investigate I'm afraid).

I expect a self-contained system not to care and certainly not to crash.

~/guix ⌥  v1.3.0-15828-gd5b4ca4445 λ ./pre-inst-env guix system image -t 
iso9660 gnu/system/install.scm
guix system: warning: unrecognized boot parameters at 
'/var/guix/profiles/system-8-link/parameters'
Backtrace:
In ice-9/boot-9.scm:
     152:2 19 (with-fluid* _ _ _)
In unknown file:
           18 (_ #<procedure 72f633d9b280 at ice-9/eval.scm:330:13 ()> 
#<procedure 72f633d9b100 at ice-9/eval…> …)
In ice-9/boot-9.scm:
     152:2 17 (with-fluid* _ _ _)
     724:2 16 (call-with-prompt _ _ #<procedure 72f633e2b4e0 at 
ice-9/eval.scm:386:13 (a . rest)>)
     152:2 15 (with-fluid* _ _ _)
     152:2 14 (with-fluid* _ _ _)
     152:2 13 (with-fluid* _ _ _)
In unknown file:
           12 (_ #<procedure 72f62714bc40 at ice-9/eval.scm:330:13 ()> 
#<procedure 72f62714bbe0 at ice-9/eval…> …)
In ice-9/eval.scm:
    191:27 11 (_ #(#(#<directory (guix scripts system) 72f63f196140> 
#<procedure 72f627144340 at ice-9/ev…>) …))
     619:8 10 (_ #(#(#(#<directory (guix scripts system) 72f63f196140>) 
image #<<image> name: #f format:…> …) …))
    626:19  9 (_ #(#(#(#<directory (guix scripts system) 72f63f196140>) 
image #<<image> name: #f format:…> …) …))
     159:9  8 (_ #(#(#(#<directory (guix scripts system) 72f63f196140>) 
image #<<image> name: #f format:…> …) …))
In srfi/srfi-1.scm:
    699:23  7 (filter-map #<procedure system->boot-parameters (a b c)> _ 
. _)
In ice-9/boot-9.scm:
   1747:15  6 (with-exception-handler #<procedure 72f622ab1ba0 at 
ice-9/boot-9.scm:1831:7 (exn)> _ #:unwind? _ …)
In ice-9/eval.scm:
    293:34  5 (_ #(#(#<directory (guix scripts system) 72f63f196140> 
"/var/guix/profiles/system-8-link" 8 #)))
    293:34  4 (_ #(#(#(#(#<directory (gnu system) 72f635df43c0>) 
"/var/guix/profiles/system-8-link") "/va…") #))
     263:9  3 (_ #(#(#<directory (gnu system) 72f635df43c0>) #f))
     155:9  2 (_ _)
In ice-9/boot-9.scm:
   1685:16  1 (raise-exception _ #:continuable? _)
   1685:16  0 (raise-exception _ #:continuable? _)

ice-9/boot-9.scm:1685:16: In procedure raise-exception:
In procedure struct-vtable: Wrong type argument in position 1 (expecting 
struct): #f

Kind regards,

T G-R

Sent from a Web browser.  Excuse or enjoy my brevity.




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

* bug#54483: ‘guix system image’ chokes on host's /var
  2022-03-20 19:26 bug#54483: ‘guix system image’ chokes on host's /var Tobias Geerinckx-Rice via Bug reports for GNU Guix
@ 2022-03-20 19:57 ` Maxime Devos
  2022-03-20 20:01   ` Maxime Devos
  2022-04-07 16:45 ` Ludovic Courtès
  1 sibling, 1 reply; 5+ messages in thread
From: Maxime Devos @ 2022-03-20 19:57 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice, 54483

[-- Attachment #1: Type: text/plain, Size: 1479 bytes --]

Tobias Geerinckx-Rice via Bug reports for GNU Guix schreef op zo 20-03-
2022 om 20:26 [+0100]:
> ~/guix ⌥  v1.3.0-15828-gd5b4ca4445 λ ./pre-inst-env guix system image -t 
> iso9660 gnu/system/install.scm
> guix system: warning: unrecognized boot parameters at 
> '/var/guix/profiles/system-8-link/parameters'
> Backtrace:
> In ice-9/boot-9.scm:
>      152:2 19 (with-fluid* _ _ _)
> [...]
> ice-9/eval.scm:386:13 (a . rest)>)
>      152:2 15 (with-fluid* _ _ _)
>      152:2 14 (with-fluid* _ _ _)
>      152:2 13 (with-fluid* _ _ _)
> In unknown file:
>            12 (_ #<procedure 72f62714bc40 at ice-9/eval.scm:330:13 ()> 
> #<procedure 72f62714bbe0 at ice-9/eval…> …)
> In ice-9/eval.scm:
>     191:27 11 (_ #(#(#<directory (guix scripts system) 72f63f196140> 
> #<procedure 72f627144340 at ice-9/ev…>) …))
>      619:8 10 (_ #(#(#(#<directory (guix scripts system) 72f63f196140>) 
> image #<<image> name: #f format:…> …) …))
>     626:19  9 (_ #(#(#(#<directory (guix scripts system) 72f63f196140>) 
> image #<<image> name: #f format:…> …) …))
>      159:9  8 (_ #(#(#(#<directory (guix scripts system) 72f63f196140>) 
> image #<<image> name: #f format:…> …) …))

For a nicer backtrace, could you run "make" before "./pre-inst-env",
such that file name and line number information would be present in
the backtrace instead of all the (ice-9 eval)?

Greetings,
Maxime.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* bug#54483: ‘guix system image’ chokes on host's /var
  2022-03-20 19:57 ` Maxime Devos
@ 2022-03-20 20:01   ` Maxime Devos
  0 siblings, 0 replies; 5+ messages in thread
From: Maxime Devos @ 2022-03-20 20:01 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice, 54483

[-- Attachment #1: Type: text/plain, Size: 306 bytes --]

Maxime Devos schreef op zo 20-03-2022 om 20:57 [+0100]:
> For a nicer backtrace, could you run "make" before "./pre-inst-env",
> such that file name and line number information would be present in
> the backtrace instead of all the (ice-9 eval)?

Also, COLUMNS=900 can be useful to avoid truncation.

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]

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

* bug#54483: ‘guix system image’ chokes on host's /var
  2022-03-20 19:26 bug#54483: ‘guix system image’ chokes on host's /var Tobias Geerinckx-Rice via Bug reports for GNU Guix
  2022-03-20 19:57 ` Maxime Devos
@ 2022-04-07 16:45 ` Ludovic Courtès
  2022-08-12 14:33   ` Mathieu Othacehe
  1 sibling, 1 reply; 5+ messages in thread
From: Ludovic Courtès @ 2022-04-07 16:45 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: 54483, Mathieu Othacehe

Hi!

Tobias Geerinckx-Rice <me@tobias.gr> skribis:

> I can't build the older installer image I want, ostensibly because my
> installed system is too new (anno-post-apteryx-versioning; no time to 
> further investigate I'm afraid).
>
> I expect a self-contained system not to care and certainly not to crash.
>
> ~/guix ⌥  v1.3.0-15828-gd5b4ca4445 λ ./pre-inst-env guix system image
> -t iso9660 gnu/system/install.scm
> guix system: warning: unrecognized boot parameters at
> '/var/guix/profiles/system-8-link/parameters'
> Backtrace:
> In ice-9/boot-9.scm:
>     152:2 19 (with-fluid* _ _ _)
> In unknown file:
>           18 (_ #<procedure 72f633d9b280 at ice-9/eval.scm:330:13 ()>

The ugly backtrace is gone with
47960b55268220ca1cb7d2fed41c53873181d816.

However, fundamentally, ‘guix system image’ shouldn’t be reading
/run/current-system/parameters because it has not use for it.

Mathieu, do you happen to have an idea where to remove that
‘read-boot-parameters-file’ call?  :-)

Thanks,
Ludo’.




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

* bug#54483: ‘guix system image’ chokes on host's /var
  2022-04-07 16:45 ` Ludovic Courtès
@ 2022-08-12 14:33   ` Mathieu Othacehe
  0 siblings, 0 replies; 5+ messages in thread
From: Mathieu Othacehe @ 2022-08-12 14:33 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: Tobias Geerinckx-Rice, 54483-done


Hey,

> However, fundamentally, ‘guix system image’ shouldn’t be reading
> /run/current-system/parameters because it has not use for it.
>
> Mathieu, do you happen to have an idea where to remove that
> ‘read-boot-parameters-file’ call?  :-)

Yes, that's because profile-boot-parameters was always evaluated in the
perform-action procedure of the (guix scripts system) module.

This has recently been fixed with
9d30cfa3372cccc847e75038d34c4ea5b8d8b241. Tobias, you can cherry-pick
this patch on top of 1.3.0 if you'd like to generate an old installer
image. I just managed to do so successfully :).

Closing this one,

Thanks,

Mathieu




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

end of thread, other threads:[~2022-08-12 14:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-20 19:26 bug#54483: ‘guix system image’ chokes on host's /var Tobias Geerinckx-Rice via Bug reports for GNU Guix
2022-03-20 19:57 ` Maxime Devos
2022-03-20 20:01   ` Maxime Devos
2022-04-07 16:45 ` Ludovic Courtès
2022-08-12 14:33   ` Mathieu Othacehe

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.