From: znavko@disroot.org
To: "Ludovic Courtès" <ludo@gnu.org>, "Giovanni Biscuolo" <g@xelera.eu>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: error in bootloader config while system init
Date: Tue, 21 May 2019 18:11:06 +0000 [thread overview]
Message-ID: <fede61fdbe8a32f67870ddd4ea724b0f@disroot.org> (raw)
In-Reply-To: <87h89o2b7u.fsf@gnu.org>
I have another error with Grub bootloader here:
# guix system init /mnt/etc/config.scm /mnt 2>1
# cat 1 | nc termbin.com 999
error: '/gnu/store/9kvnp0vp24vplnwxd7svr8mlcbxa2f0l-grub-2.02/sbin/grub-install --no-floppy
--target=i386-pc --boot-directory /mnt/boot /dev/sdb' exited with status 1; output follows:
Installing for i386-pc platform.
/gnu/store/9kvnp0vp24vplnwxd7svr8mlcbxa2f0l-grub-2.02/sbin/grub-install: warning: this GPT
partition label contains no BIOS Boot Partition; embedding won't be possible.
/gnu/store/9kvnp0vp24vplnwxd7svr8mlcbxa2f0l-grub-2.02/sbin/grub-install: warning: Embedding is not
possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are
UNRELIABLE and their use is discouraged..
/gnu/store/9kvnp0vp24vplnwxd7svr8mlcbxa2f0l-grub-2.02/sbin/grub-install: error: will not proceed
with blocklists.
guix system: error: failed to install bootloader
/gnu/store/2n39p56aqcgrzjap8395k7q8dxcm0kpp-bootloader-installer
# cat /mnt/etc/config.scm | nc termbin.com 999
Here it the bootloader section:
(operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale "en_US.utf8")
(bootloader
(bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/sdb")))
(initrd-modules (append (list "sata_sis")
%base-initrd-modules))
(file-systems (cons
(file-system
(device "/dev/sdb1")
(mount-point "/")
(type "ext4"))
%base-file-systems))
(swap-devices '("/dev/sdb2"))
...
# fdisk -l
...
Device Start End Sectors Size Type
/dev/sdb1 2048 104859647 104857600 50G Linux filesystem
/dev/sdb2 104859648 125045390 20185743 9.6G Linux swap
As I understood, guix needs another disk partition, one separate for grub.
I tried this but unsuccessfully:
# fdisk -l
Device Start End Sectors Size Type
/dev/sdb1 2048 15626239 15624192 7.5G BIOS boot
/dev/sdb2 15626240 99610623 83984384 40G Linux filesystem
/dev/sdb3 99610624 125045390 25434767 12.1G Linux swap
# cat config.scm
...
(operating-system (host-name "antelope") (timezone "Europe/Moscow") (locale "en_US.utf8")
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/sdb")))
(initrd-modules (append (list "sata_sis")
%base-initrd-modules))
(file-systems (list (file-system
(device "/dev/sdb1")
(mount-point "/boot")
(type "ext4"))
(file-system
(device "/dev/sdb2")
(mount-point "/")
(type "ext4"))
%base-file-systems))
(swap-devices '("/dev/sdb3"))
...
# guix system init /mnt/etc/config.scm /mnt 2>1
# cat 1 | nc termbin.com 9999
Backtrace:
17 (apply-smob/1 #<catch-closure b1a8e0>)
In ice-9/boot-9.scm:
705:2 16 (call-with-prompt _ _ #<procedure default-prompt-handle…>)
In ice-9/eval.scm:
619:8 15 (_ #(#(#<directory (guile-user) b9c140>)))
In guix/ui.scm:
1747:12 14 (run-guix-command _ . _)
In ice-9/boot-9.scm:
829:9 13 (catch _ _ #<procedure 7f60d3abd910 at guix/ui.scm:703…> …)
829:9 12 (catch _ _ #<procedure 7f60d3abd928 at guix/ui.scm:826…> …)
In guix/scripts/system.scm:
1325:8 11 (_)
In guix/status.scm:
768:4 10 (call-with-status-report _ _)
In guix/scripts/system.scm:
1181:4 9 (process-action _ _ _)
In guix/store.scm:
623:10 8 (call-with-store _)
1794:24 7 (run-with-store _ _ #:guile-for-build _ #:system _ # _)
In guix/scripts/system.scm:
1197:13 6 (_ _)
867:9 5 (perform-action init #<<operating-system> kernel: #<pa…> …)
In gnu/system.scm:
975:26 4 (operating-system-bootcfg #<<operating-system> kernel:…> …)
992:26 3 (operating-system-boot-parameters #<<operating-system>…> …)
889:4 2 (operating-system-initrd-file #<<operating-system> kern…>)
In unknown file:
1 (filter #<procedure file-system-needed-for-boot? (fs)> #)
In gnu/system/file-systems.scm:
241:6 0 (file-system-needed-for-boot? _)
gnu/system/file-systems.scm:241:6: In procedure file-system-needed-for-boot?:
In procedure struct_vtable: Wrong type argument in position 1 (expecting struct): (#<<file-system> device: "none" mount-point: "/dev/pts" type: "devpts" flags: () options: "gid=996,mode=620" mount?: #t needed-for-boot?: #f check?: #f create-mount-point?: #t dependencies: () location: ((line . 325) (column . 2) (filename . "gnu/system/file-systems.scm"))> #<<file-system> device: "tmpfs" mount-point: "/dev/shm" type: "tmpfs" flags: (no-suid no-dev) options: "size=50%" mount?: #t needed-for-boot?: #f check?: #f create-mount-point?: #t dependencies: () location: ((line . 336) (column . 2) (filename . "gnu/system/file-systems.scm"))> #<<file-system> device: "/gnu/store" mount-point: "/gnu/store" type: "none" flags: (read-only bind-mount) options: #f mount?: #t needed-for-boot?: #f check?: #f create-mount-point?: #f dependencies: () location: ((line . 349) (column . 2) (filename . "gnu/system/file-systems.scm"))>)
This info lacks from manual.
May 21, 2019 1:23 PM, "Ludovic Courtès" <ludo@gnu.org> wrote:
> Hi znavko,
>
> Giovanni Biscuolo <g@xelera.eu> skribis:
>
>> In gnu/system.scm:
>> 974:26 0 (operating-system-bootcfg #<<operating-system> kernel:…> …)
>>
>> gnu/system.scm:974:26: In procedure operating-system-bootcfg:
>> In procedure struct_vtable: Wrong type argument in position 1 (expecting struct): #f
>
> [...]
>
>> (file-systems (cons (file-system (device "/dev/sdb1") (mount-point "/mnt") (type "ext4"))
>> %base-file-systems))
>
> I think Guix is trying to tell you, with its own words *cough*, that
> your OS config does not specify a root file system. Indeed, there’s
> “/mnt” there, but no “/”.
>
> HTH!
>
> Ludo’.
next prev parent reply other threads:[~2019-05-21 18:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-21 3:47 error in bootloader config while system init znavko
2019-05-21 8:53 ` Giovanni Biscuolo
2019-05-21 13:23 ` Ludovic Courtès
2019-05-21 18:11 ` znavko [this message]
2019-05-21 19:55 ` znavko
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fede61fdbe8a32f67870ddd4ea724b0f@disroot.org \
--to=znavko@disroot.org \
--cc=g@xelera.eu \
--cc=help-guix@gnu.org \
--cc=ludo@gnu.org \
/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.
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.