help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error in bootloader config while system init


From: znavko
Subject: Re: error in bootloader config while system init
Date: Tue, 21 May 2019 18:11:06 +0000

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" <address@hidden> wrote:

> Hi znavko,
> 
> Giovanni Biscuolo <address@hidden> 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’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]