GNU bug report logs - #54483
‘guix system image’ chokes on host's /var

Previous Next

Package: guix;

Reported by: Tobias Geerinckx-Rice <me <at> tobias.gr>

Date: Sun, 20 Mar 2022 19:28:02 UTC

Severity: important

Done: Mathieu Othacehe <othacehe <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 54483 in the body.
You can then email your comments to 54483 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#54483; Package guix. (Sun, 20 Mar 2022 19:28:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 20 Mar 2022 19:28:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Tobias Geerinckx-Rice <me <at> tobias.gr>
To: Bug guix <bug-guix <at> gnu.org>
Subject: ‘guix system image’ chokes on host's /var
Date: Sun, 20 Mar 2022 20:26:51 +0100
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.




Information forwarded to bug-guix <at> gnu.org:
bug#54483; Package guix. (Sun, 20 Mar 2022 19:58:01 GMT) Full text and rfc822 format available.

Message #8 received at 54483 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>, 54483 <at> debbugs.gnu.org
Subject: Re: bug#54483: ‘guix system
 image’ chokes on host's /var
Date: Sun, 20 Mar 2022 20:57:24 +0100
[Message part 1 (text/plain, inline)]
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.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#54483; Package guix. (Sun, 20 Mar 2022 20:02:02 GMT) Full text and rfc822 format available.

Message #11 received at 54483 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>, 54483 <at> debbugs.gnu.org
Subject: Re: bug#54483: ‘guix system
 image’ chokes on host's /var
Date: Sun, 20 Mar 2022 21:01:07 +0100
[Message part 1 (text/plain, inline)]
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.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#54483; Package guix. (Thu, 07 Apr 2022 16:46:01 GMT) Full text and rfc822 format available.

Message #14 received at 54483 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Tobias Geerinckx-Rice <me <at> tobias.gr>
Cc: 54483 <at> debbugs.gnu.org, Mathieu Othacehe <othacehe <at> gnu.org>
Subject: Re: bug#54483: ‘guix system image’ chokes on host's /var
Date: Thu, 07 Apr 2022 18:45:30 +0200
Hi!

Tobias Geerinckx-Rice <me <at> 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’.




Severity set to 'important' from 'normal' Request was from Ludovic Courtès <ludo <at> gnu.org> to control <at> debbugs.gnu.org. (Thu, 07 Apr 2022 16:46:02 GMT) Full text and rfc822 format available.

Reply sent to Mathieu Othacehe <othacehe <at> gnu.org>:
You have taken responsibility. (Fri, 12 Aug 2022 14:35:02 GMT) Full text and rfc822 format available.

Notification sent to Tobias Geerinckx-Rice <me <at> tobias.gr>:
bug acknowledged by developer. (Fri, 12 Aug 2022 14:35:02 GMT) Full text and rfc822 format available.

Message #21 received at 54483-done <at> debbugs.gnu.org (full text, mbox):

From: Mathieu Othacehe <othacehe <at> gnu.org>
To: Ludovic Courtès <ludo <at> gnu.org>
Cc: Tobias Geerinckx-Rice <me <at> tobias.gr>, 54483-done <at> debbugs.gnu.org
Subject: Re: bug#54483: ‘guix system image’ chokes on host's /var
Date: Fri, 12 Aug 2022 16:33:55 +0200
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




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 10 Sep 2022 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 200 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.