It is a lot I haven't posted here.
I just updated (an usual emerge -vuND) a laptop via ssh. After that, as always when updated grub2, I launched grub-install. For not mixing grub options of this laptop with others, I copied accurately the exact command from this laptop bash history:
Code: Select all
grub-install --target=x86_64-efi --efi-directory=/boot/efiCode: Select all
Installing for x86_64-efi platform.
EFI variables are not supported on this system.
EFI variables are not supported on this system.
grub-install: error: efibootmgr failed to register the boot entry: No such file or directory.Code: Select all
mount | grep boot
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=866,iocharset=utf8,shortname=mixed,errors=remount-ro)
ls -al /boot/efi
total 12
drwx------ 3 root root 4096 Jan 1 1970 .
drwxr-xr-x 4 root root 4096 Mar 2 00:30 ..
drwx------ 5 root root 4096 May 31 2021 EFI
file /sys/firmware/efi/efivars
/sys/firmware/efi/efivars: directory
cat /etc/portage/make.conf | grep GRUB
GRUB_PLATFORMS="efi-64"
Edit:
The Gentoo system from which I am ssh'ing, was installed without efi support.
Edit2:
Code: Select all
lsmod | grep efivarfsEdit3:
Code: Select all
modprobe efivarfs
modprobe: FATAL: Module efivarfs not found in directory /lib/modules/6.1.14-gentoo-v22I remember, one time I couldn't boot this laptop, it didn't show the boot grub menu, just a black screen; I had to do a hard-reset (pushing power button for 10 sec). Possible issues with the SSD?
Edit5:
Should I run this command, as suggested in Gentoo efibootmgr wiki?
Code: Select all
mount -o remount,rw -t efivarfs efivarfs /sys/firmware/efi/efivars



