On 3/29/24 03:55, Alexander Puchmayr wrote:
Hi,
After upgrading two Lenovo Laptops (UEFI, secure boot disabled), grub does not
work anymore; instead it says "Welcome to Grub" ... And then immediately boots
into bios setup.
What did go wrong?
I did the usual things:
* emerge update world
* emerge --config gentoo-kernel
* grub-mkconfig -o /boot/grub/grub.cfg
Everything went fine without errors, but then the final reboot, only bios setup.
And these steps do not alter the efi boot loaders
Any ideas? How to get out of this?
Alex
You'll have to boot off of a rescue disk and chroot in to fix this problem.
I had this exact problem yesterday. I hadn't upgraded grub in quite some
time and I forgot that particular machine will not boot using:
EFI/gentoo/grubx64.efi
...it silently fails to boot and removes the boot entry (efibootmgr
confirmed this.)
What happened is I forgot to run two grub install commands (I only ran
the first one):
grub-install --efi-directory=/efi
grub-install --efi-directory=/efi --removeable
This created a conundrum as only
EFI/gentoo/grubx64.efi
was updated, which my BIOS refuses to boot from.
After I chroot'ed in, I ran both commands so that both
EFI/gentoo/grubx64.efi AND
EFI/BOOT/BOOTX64.EFI
were updated to the new versions. After that my system booted normally.
(I rebooted from ssh only to have the machine not come up, when I hooked
up the monitor it said something about something missing.)
Dan