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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Mathieu Othacehe <othacehe <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#54483: closed (‘guix system
 image’ chokes on host's /var)
Date: Fri, 12 Aug 2022 14:35:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Fri, 12 Aug 2022 16:33:55 +0200
with message-id <87lertbkfg.fsf <at> gnu.org>
and subject line Re: bug#54483: ‘guix system image’ chokes on host's /var
has caused the debbugs.gnu.org bug report #54483,
regarding ‘guix system image’ chokes on host's /var
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
54483: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=54483
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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.


[Message part 3 (message/rfc822, inline)]
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


This bug report was last modified 2 years and 278 days ago.

Previous Next


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