Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved] grub-install problem
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
koslowj
Tux's lil' helper
Tux's lil' helper


Joined: 15 Feb 2005
Posts: 87

PostPosted: Wed May 08, 2024 1:27 pm    Post subject: [Solved] grub-install problem Reply with quote

I'm running into a problem with grub-install on an AMD64 system from the latest minimal CD:

/etc/portage/make.conf contains the line GRUB_PLATFORMS="efi-64"

my efi partition is mounted under /boot/efi
it contains a file /boot/efi/EFI/gentoo/grubx64.efi with the current date, and has a boot and esp flag.

grub-install --target=x86_64-efi produces the following output:

Installing for x86_64-efi platform.
EFI variables are not supported on this system.
EFI variables are not supported on this system. [a second time]
grub-install: error efibootmgr failed to register the boot entry: No such file or directory

What am I missing?

On the other hand, when I re-install the kernel I built, I see this message

Running /usr/lib/kernel/postinst.d/91-grub-mkconfig.install 6.6.30-gentoo-x86_64 /boot/vmlinuz-6.6.30-gentoo-x86_64

Moreover, the existing (from previous attempts, I guess) /boot/grub/grub.cfg is backed up, and then produces the file
/boot/grub/grub.cfg, however without the entry for initramfs/6/6/30-gentoo-x86_64, since I haven't called genkernel yet.

[Apparently, the call to genkernel has to preceed the make install command?]


Last edited by koslowj on Sat May 11, 2024 5:40 pm; edited 1 time in total
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 4291
Location: Bavaria

PostPosted: Wed May 08, 2024 1:36 pm    Post subject: Re: grub-install problem Reply with quote

koslowj wrote:
Code:
EFI variables are not supported on this system.

What am I missing?

Short: A correct setting in your UEFI BIOS (CSM mode must be disabled).

Long: Every GentooCD is able to do a dual boot ... an UEFI boot if CSM mode is disabled or an old "MBR boot" where you dont have efivarfs. See more here:

https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Boot_kernel_via_UEFI#Prerequisites_for_an_UEFI_boot ->
https://wiki.gentoo.org/wiki/Efivarfs
https://wiki.gentoo.org/wiki/Efibootmgr#EFI_vars
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
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