Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
not booting, only have the grub cmd line[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
xiwi
n00b
n00b


Joined: 21 Aug 2024
Posts: 8

PostPosted: Sun Dec 08, 2024 9:15 pm    Post subject: not booting, only have the grub cmd line[SOLVED] Reply with quote

I followed the handbook pretty closely ( I think) but I can't seem to get the boot loader right, it just boots into the grub command line interface. I mounted /dev/nvme0n1p1 /mnt/gentoo/efi, installed a binary kernel which got dracut to run just fine, and ran grub-install --efi-directory=/efi without issues.

What am I missing? I feel like I'm looking over something simple...

Kernel install output: https://bpa.st/NOKA

Fstab: https://bpa.st/UTCQ

Efibootmgr and /efi directory structure: https://bpa.st/E5XQ

Thank you


Last edited by xiwi on Mon Dec 09, 2024 3:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3936

PostPosted: Sun Dec 08, 2024 10:04 pm    Post subject: Reply with quote

Code:

Reading /usr/lib/kernel/install.conf...
/usr/lib/kernel/install.conf configures layout=efistub
/usr/lib/kernel/install.conf configures initrd_generator=dracut
/usr/lib/kernel/install.conf configures uki_generator=none
Found vendor directory on ESP

Code:

Boot0000* gentoo        HD(1,GPT,3b5943d9-4654-44cc-8d8f-b47a5d100b3d,0x800,0x200000)/\EFI\gentoo\grubx64.efi
      dp: 04 01 2a 00 01 00 00 00 00 08 00 00 00 00 00 00 00 00 20 00 00 00 00 00 d9 43 59 3b 54 46 cc 44 8d 8f b4 7a 5d 10 0b 3d 02 02 / 04 04 34 00 5c 00 45 00 46 00 49 00 5c 00 67 00 65 00 6e 00 74 00 6f 00 6f 00 5c 00 67 00 72 00 75 00 62 00 78 00 36 00 34 00 2e 00 65 00 66 00 69 00 00 00 / 7f ff 04 00

According to your kernel output this is an efi stub config,but according to efibootmgr it is not.
For a efi stub config you do not need grub.
It loads directly from efi.
Something like
Code:

efibootmgr --create \
 --disk /dev/nvme0n1 --part 1 \
 --label "EFISTUB Arch" \
 --loader /vmlinuz-linux-lts \
 --unicode 'root=UUID=01a40dd8-28f0-4636-be1e-aeed60c98095 resume=UUID=2d877d5d-4ca1-4d46-a3d6-b6ee94cbbd78 rw rootflags=subvol=@ loglevel=3 quiet initrd=\initramfs-linux-lts.img'

Grub expects to find kernel under /boot.
What is the content of your /boot directory?
_________________
:)
Back to top
View user's profile Send private message
xiwi
n00b
n00b


Joined: 21 Aug 2024
Posts: 8

PostPosted: Mon Dec 09, 2024 3:29 pm    Post subject: Reply with quote

Based on your comment I looked at the useflags for installkernel, and for some reason I put efistub and not grub :oops:

Thank you!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum