From mboxrd@z Thu Jan 1 00:00:00 1970 From: znavko@disroot.org Subject: Re: error in bootloader config while system init Date: Tue, 21 May 2019 19:55:53 +0000 Message-ID: <0673c1ed269076e1ac20c19a89e53a0d@disroot.org> References: <87h89o2b7u.fsf@gnu.org> <6bafb31cbd973b67094f5551a8d7c403@disroot.org> <87v9y489yx.fsf@roquette.mug.biscuolo.net> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:54543) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hTAri-0003Km-Gn for help-guix@gnu.org; Tue, 21 May 2019 15:56:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hTArg-0005jE-UV for help-guix@gnu.org; Tue, 21 May 2019 15:56:02 -0400 In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: =?utf-8?B?THVkb3ZpYyBDb3VydMOocw==?= , Giovanni Biscuolo Cc: help-guix Sorry, for this flow.=0AI've got normal output of `guix system init ...` = but after reboot into my newly installed system I've seen that filesystem= check on sdb2 failed. And seeing bournish guile shell.=0A=0AI think I wa= s wrong with partitioning. On step partitioning I wish to say, 'parted' w= orks bad, 'cfdisk' does not work at all. so I've used fdisk to part my d= isk on boot partition, root partition, and swap partition.=0Aalso I had a= trouble wenn I tried to fdisk mounted fs. It started messaging about dev= ice is mounted in all ttys so I could not work with it and need to reboot= usb.=0A=0AI will try again tomorrow, updating guix from usb with `guix p= ull`. I think current guix image has a lot of bugs. Console installer wit= h menues does not work at all. And manual installation has too little inf= o in the manual. Partitioning is not described there. The file-systems se= ction of config is described not enough.=0A=0A=0AMay 21, 2019 6:11 PM, zn= avko@disroot.org wrote:=0A=0A> I have another error with Grub bootloader = here:=0A> =0A> # guix system init /mnt/etc/config.scm /mnt 2>1=0A> # cat = 1 | nc termbin.com 999=0A> =0A> error: '/gnu/store/9kvnp0vp24vplnwxd7svr8= mlcbxa2f0l-grub-2.02/sbin/grub-install --no-floppy=0A> --target=3Di386-pc= --boot-directory /mnt/boot /dev/sdb' exited with status 1; output follow= s:=0A> =0A> Installing for i386-pc platform.=0A> /gnu/store/9kvnp0vp24vpl= nwxd7svr8mlcbxa2f0l-grub-2.02/sbin/grub-install: warning: this GPT=0A> pa= rtition label contains no BIOS Boot Partition; embedding won't be possibl= e.=0A> /gnu/store/9kvnp0vp24vplnwxd7svr8mlcbxa2f0l-grub-2.02/sbin/grub-in= stall: warning: Embedding is not=0A> possible. GRUB can only be installed= in this setup by using blocklists. However, blocklists are=0A> UNRELIABL= E and their use is discouraged..=0A> /gnu/store/9kvnp0vp24vplnwxd7svr8mlc= bxa2f0l-grub-2.02/sbin/grub-install: error: will not proceed=0A> with blo= cklists.=0A> =0A> guix system: error: failed to install bootloader=0A> /g= nu/store/2n39p56aqcgrzjap8395k7q8dxcm0kpp-bootloader-installer=0A> =0A> #= cat /mnt/etc/config.scm | nc termbin.com 999=0A> =0A> Here it the bootlo= ader section:=0A> (operating-system (host-name "antelope") (timezone "Eur= ope/Moscow") (locale "en_US.utf8")=0A> (bootloader =0A> (bootloader-confi= guration =0A> (bootloader grub-bootloader) =0A> (target "/dev/sdb")))=0A>= =0A> (initrd-modules (append (list "sata_sis")=0A> %base-initrd-modules)= )=0A> =0A> (file-systems (cons =0A> (file-system =0A> (device "/dev/sdb1"= ) =0A> (mount-point "/") =0A> (type "ext4")) =0A> %base-file-systems))=0A= > (swap-devices '("/dev/sdb2"))=0A> ...=0A> =0A> # fdisk -l=0A> ...=0A> D= evice Start End Sectors Size Type=0A> /dev/sdb1 2048 104859647 104857600 = 50G Linux filesystem=0A> /dev/sdb2 104859648 125045390 20185743 9.6G Linu= x swap=0A> =0A> As I understood, guix needs another disk partition, one s= eparate for grub.=0A> I tried this but unsuccessfully:=0A> =0A> # fdisk -= l =0A> =0A> Device Start End Sectors Size Type=0A> /dev/sdb1 2048 1562623= 9 15624192 7.5G BIOS boot=0A> /dev/sdb2 15626240 99610623 83984384 40G Li= nux filesystem=0A> /dev/sdb3 99610624 125045390 25434767 12.1G Linux swap= =0A> =0A> # cat config.scm =0A> ...=0A> (operating-system (host-name "ant= elope") (timezone "Europe/Moscow") (locale "en_US.utf8")=0A> (bootloader = (bootloader-configuration =0A> (bootloader grub-bootloader) =0A> (target = "/dev/sdb")))=0A> =0A> (initrd-modules (append (list "sata_sis")=0A> %bas= e-initrd-modules))=0A> =0A> (file-systems (list (file-system =0A> (device= "/dev/sdb1") =0A> (mount-point "/boot") =0A> (type "ext4")) =0A> (file-s= ystem=0A> (device "/dev/sdb2")=0A> (mount-point "/")=0A> (type "ext4"))= =0A> %base-file-systems))=0A> (swap-devices '("/dev/sdb3"))=0A> ...=0A> = =0A> # guix system init /mnt/etc/config.scm /mnt 2>1=0A> # cat 1 | nc ter= mbin.com 9999=0A> =0A> Backtrace:=0A> 17 (apply-smob/1 #)=0A> In ice-9/boot-9.scm:=0A> 705:2 16 (call-with-prompt _ _ #)=0A> In ice-9/eval.scm:=0A> 619:8 1= 5 (_ #(#(#)))=0A> In guix/ui.scm:=0A> 1747= :12 14 (run-guix-command _ . _)=0A> In ice-9/boot-9.scm:=0A> 829:9 13 (ca= tch _ _ # =E2=80=A6)= =0A> 829:9 12 (catch _ _ # =E2=80=A6)=0A> In guix/scripts/system.scm:=0A> 1325:8 11 (_)=0A> = In guix/status.scm:=0A> 768:4 10 (call-with-status-report _ _)=0A> In gui= x/scripts/system.scm:=0A> 1181:4 9 (process-action _ _ _)=0A> In guix/sto= re.scm:=0A> 623:10 8 (call-with-store _)=0A> 1794:24 7 (run-with-store _ = _ #:guile-for-build _ #:system _ # _)=0A> In guix/scripts/system.scm:=0A>= 1197:13 6 (_ _)=0A> 867:9 5 (perform-action init #< ke= rnel: # =E2=80=A6)=0A> In gnu/system.scm:=0A> 975:26 4 (oper= ating-system-bootcfg #< kernel:=E2=80=A6> =E2=80=A6)=0A= > 992:26 3 (operating-system-boot-parameters #<=E2=80= =A6> =E2=80=A6)=0A> 889:4 2 (operating-system-initrd-file #< kern=E2=80=A6>)=0A> In unknown file:=0A> 1 (filter # #)=0A> In gnu/system/file-systems.scm:=0A>= 241:6 0 (file-system-needed-for-boot? _)=0A> =0A> gnu/system/file-system= s.scm:241:6: In procedure file-system-needed-for-boot?:=0A> In procedure = struct_vtable: Wrong type argument in position 1 (expecting struct): (#<<= file-system>=0A> device: "none" mount-point: "/dev/pts" type: "devpts" fl= ags: () options: "gid=3D996,mode=3D620" mount?:=0A> #t needed-for-boot?: = #f check?: #f create-mount-point?: #t dependencies: () location: ((line .= 325)=0A> (column . 2) (filename . "gnu/system/file-systems.scm"))> #< device: "tmpfs"=0A> mount-point: "/dev/shm" type: "tmpfs" flag= s: (no-suid no-dev) options: "size=3D50%" mount?: #t=0A> needed-for-boot?= : #f check?: #f create-mount-point?: #t dependencies: () location: ((line= . 336)=0A> (column . 2) (filename . "gnu/system/file-systems.scm"))> #<<= file-system> device: "/gnu/store"=0A> mount-point: "/gnu/store" type: "no= ne" flags: (read-only bind-mount) options: #f mount?: #t=0A> needed-for-b= oot?: #f check?: #f create-mount-point?: #f dependencies: () location: ((= line . 349)=0A> (column . 2) (filename . "gnu/system/file-systems.scm"))>= )=0A> =0A> This info lacks from manual.=0A> =0A> May 21, 2019 1:23 PM, "L= udovic Court=C3=A8s" wrote:=0A> =0A>> Hi znavko,=0A>> =0A>= > Giovanni Biscuolo skribis:=0A>> =0A>>> In gnu/system.scm:= =0A>>> 974:26 0 (operating-system-bootcfg #< kernel:=E2= =80=A6> =E2=80=A6)=0A>>> =0A>>> gnu/system.scm:974:26: In procedure opera= ting-system-bootcfg:=0A>>> In procedure struct_vtable: Wrong type argumen= t in position 1 (expecting struct): #f=0A>> =0A>> [...]=0A>> =0A>>> (file= -systems (cons (file-system (device "/dev/sdb1") (mount-point "/mnt") (ty= pe "ext4"))=0A>>> %base-file-systems))=0A>> =0A>> I think Guix is trying = to tell you, with its own words *cough*, that=0A>> your OS config does no= t specify a root file system. Indeed, there=E2=80=99s=0A>> =E2=80=9C/mnt= =E2=80=9D there, but no =E2=80=9C/=E2=80=9D.=0A>> =0A>> HTH!=0A>> =0A>> L= udo=E2=80=99.