‘guix system image’ chokes on host's /var

DoneSubmitted by Tobias Geerinckx-Rice.
Details
4 participants
  • Ludovic Courtès
  • Maxime Devos
  • Tobias Geerinckx-Rice
  • Mathieu Othacehe
Owner
unassigned
Severity
important
T
T
Tobias Geerinckx-Rice wrote on 20 Mar 20:26 +0100
‘guix system image’ chokes on host's /var
(name . Bug guix)(address . bug-guix@gnu.org)
7f383e57e329486509d4059b31695cfd@tobias.gr
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.
M
M
Maxime Devos wrote on 20 Mar 20:57 +0100
Re: bug#54483: ‘guix system image’ chokes on host's /var
adba135c44fabec3424ccc9480df4fffc4f8c5ac.camel@telenet.be
Tobias Geerinckx-Rice via Bug reports for GNU Guix schreef op zo 20-03-
2022 om 20:26 [+0100]:
Toggle quote (25 lines)
> ~/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.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYjeHJBccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7mP6AQDZ6Zyk7Adi/Hf2BWypaemKRIGI
IfAfncJmfb7wQEj/wQD8DE6APsOTyBH1uULrGHWixi2hulI+q6gDgPpKS+pKVQU=
=JpC5
-----END PGP SIGNATURE-----


M
M
Maxime Devos wrote on 20 Mar 21:01 +0100
db3abf89d196f4e0b59e140fe8be56cccb3613a2.camel@telenet.be
Maxime Devos schreef op zo 20-03-2022 om 20:57 [+0100]:
Toggle quote (4 lines)
> 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.
-----BEGIN PGP SIGNATURE-----

iI0EABYKADUWIQTB8z7iDFKP233XAR9J4+4iGRcl7gUCYjeIAxccbWF4aW1lZGV2
b3NAdGVsZW5ldC5iZQAKCRBJ4+4iGRcl7gA2AP9pT5Cb8kM5/63AG8fCpMW8abZg
+zWayAlWjYHwwrHxFAD9HsZClz40dAL+PbmxOkx00hN/YbixyLIXmqcuqINl1gE=
=STnH
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 7 Apr 18:45 +0200
Re: bug#54483: ‘guix system image ’ chokes on host's /var
(name . Tobias Geerinckx-Rice)(address . me@tobias.gr)
87h774etat.fsf@gnu.org
Hi!

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

Toggle quote (16 lines)
> 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’.
L
L
Ludovic Courtès wrote on 7 Apr 18:45 +0200
control message for bug #54483
(address . control@debbugs.gnu.org)
87fsmoetak.fsf@gnu.org
severity 54483 important
quit
M
M
Mathieu Othacehe wrote on 12 Aug 16:33 +0200
Re: bug#54483: ‘guix system image ’ chokes on host's /var
(name . Ludovic Courtès)(address . ludo@gnu.org)
87lertbkfg.fsf@gnu.org
Hey,

Toggle quote (6 lines)
> 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
Closed
?
Your comment

This issue is archived.

To comment on this conversation send email to 54483@debbugs.gnu.org