unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Maxim Cournoyer <maxim.cournoyer@gmail.com>
To: Saku Laesvuori <saku@laesvuori.fi>
Cc: help-guix@gnu.org
Subject: Re: Error building with guix system image
Date: Thu, 20 Apr 2023 08:49:37 -0400	[thread overview]
Message-ID: <87y1mmyazi.fsf@gmail.com> (raw)
In-Reply-To: <20230419105129.p4pm2qkb6ldcmde4@X-kone> (Saku Laesvuori's message of "Wed, 19 Apr 2023 13:51:29 +0300")

Hello,

Saku Laesvuori <saku@laesvuori.fi> writes:

> Running `guix system image image-minimal.scm` fails with the following
> build log:
>
> ```build log for partition.img.drv
> copying 340 store items | [progress bar animation]
> registering 337 items | [progress bar animation, fails before end]
> Backtrace:
> In ice-9/eval.scm:
>     619:8 19 (_ #(#<directory (guile-user) 7fffeffcfc80> #<proced…> …))
> In ./gnu/build/image.scm:
>     236:4 18 (initialize-root-partition "tmp-root" #:bootcfg _ # _ # …)
> In ice-9/boot-9.scm:
>    260:13 17 (for-each #<procedure 7fffed357b80 at ./gnu/build/imag…> …)
> In ./gnu/build/image.scm:
>     167:6 16 (register-closure "tmp-root" "system" #:schema _ # _)
> In ./guix/store/database.scm:
>    111:20 15 (call-with-database "tmp-root/var/guix/db/db.sqlite" # # …)
> In ./guix/progress.scm:
>     71:36 14 (call-with-progress-reporter #<<progress-reporter> sta…> …)
> In srfi/srfi-1.scm:
>     634:9 13 (for-each #<procedure 7fffec850d40 at ./guix/store/dat…> …)
> In ./guix/store/database.scm:
>    420:36 12 (_ #<<store-info> item: "/gnu/store/8z1q7vjxylm6l4ibsyw…>)
> In ./guix/store/deduplication.scm:
>      42:4 11 (nar-sha256 "tmp-root/gnu/store/8z1q7vjxylm6l4ibsywd4h6…")
> In ./guix/serialization.scm:
>     381:9 10 (dump "tmp-root/gnu/store/8z1q7vjxylm6l4ibsywd4h6m6jv6z…")
> In srfi/srfi-1.scm:
>     634:9  9 (for-each #<procedure 7fffed493990 at ./guix/serializa…> …)
> In ./guix/serialization.scm:
>    386:23  8 (_ "share")
>     381:9  7 (dump "tmp-root/gnu/store/8z1q7vjxylm6l4ibsywd4h6m6jv6z…")
> In srfi/srfi-1.scm:
>     634:9  6 (for-each #<procedure 7fffed4936f0 at ./guix/serializa…> …)
> In ./guix/serialization.scm:
>    386:23  5 (_ "locale")
>     381:9  4 (dump "tmp-root/gnu/store/8z1q7vjxylm6l4ibsywd4h6m6jv6z…")
> In srfi/srfi-1.scm:
>     634:9  3 (for-each #<procedure 7fffed4933f0 at ./guix/serializa…> …)
> In ./guix/serialization.scm:
>    386:23  2 (_ "ja")
>    380:43  1 (dump "tmp-root/gnu/store/8z1q7vjxylm6l4ibsywd4h6m6jv6z…")
> In srfi/srfi-1.scm:
>    691:29  0 (filter-map #<procedure 7fffeea6d9e0 at ./guix/seriali…> …)
>
> srfi/srfi-1.scm:691:29: In procedure filter-map:
> In procedure car: Wrong type argument in position 1 (expecting pair): #f
> environment variable `PATH' set to `/gnu/store/zfiwdkwfs039q346nkynvhllxbra2rg8-e2fsprogs-1.46.4/bin:/gnu/store/zfiwdkwfs039q346nkynvhllxbra2rg8-e2fsprogs-1.46.4/sbin:/gnu/store/nj43wfbldxrwfmrk9vgvliz28iyl89dp-fakeroot-1.30.1/bin:/gnu/store/lpkpldxni8vab82kwq9qs032hni580ak-dosfstools-4.2/sbin:/gnu/store/131xfb6iz9vh7c8s7kv6nhvycrqcfad8-mtools-4.0.42/bin'
> ```
>
> Does anyone have any pointers on how to debug or fix this? The operating
> system builds nicely with `guix system vm`. Building
> `gnu/system/examples/bare-bones.tmpl` with `guix system image` also
> fails with a similar error and works correctly with `guix system vm`.
>
>
> ```image-minimal.scm
> (use-modules
>   (gnu)
>   (gnu system image))
>
> (define %operating-system
>   (operating-system
>    (host-name "image-test")
>    (bootloader (bootloader-configuration
>                 (bootloader grub-bootloader)
>                 (targets '("/dev/sdX"))))
>    (file-systems (cons*
>                   (file-system
>                    (mount-point "/")
>                    (device "/dev/sdX1")
>                    (type "ext4"))
>                   %base-file-systems))))

Do you correctly substitute /dev/sdX for your real device name (e.g.,
/dev/sda) ?

It should print a nice error when it doesn't exist, I think, but perhaps
it regressed.

'guix system vm' overrides the root file system, so wouldn't complain
about a problem in your root file system definition.

-- 
Thanks,
Maxim


  reply	other threads:[~2023-04-20 12:50 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-19 10:51 Error building with guix system image Saku Laesvuori
2023-04-20 12:49 ` Maxim Cournoyer [this message]
2023-04-25 17:16   ` Saku Laesvuori
2023-05-01  1:45     ` Maxim Cournoyer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y1mmyazi.fsf@gmail.com \
    --to=maxim.cournoyer@gmail.com \
    --cc=help-guix@gnu.org \
    --cc=saku@laesvuori.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).