koslowj Tux's lil' helper
Joined: 15 Feb 2005 Posts: 87
|
Posted: Wed May 08, 2024 1:27 pm Post subject: [Solved] grub-install problem |
|
|
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 |
|