Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GRUB 2.12 doesn't boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
atchim
n00b
n00b


Joined: 24 Oct 2021
Posts: 9

PostPosted: Sat Dec 23, 2023 4:27 pm    Post subject: GRUB 2.12 doesn't boot Reply with quote

Last night I updated several packages via @world update. Today I noticed that my kernel was also upgraded, so I did the usual process to properly install it. This process includes the generation of updated GRUB configuration file. When I rebooted my laptop, I got the boot menu instead of the default initialization. So I had to boot the Gentoo's minimal install media via pendrive, then I had to chroot to have access to my system. Checking the emerge log I found that one of the packages that was updated was GRUB. So I masked the version 2.12, then I did a downgrade for GRUB (now it's version 2.06-r9). I generated the configuration file via grub-mkconfig and, after rebooting, it worked.

Is GRUB 2.12 really broken or is there any detail that I didn't catch up?
Back to top
View user's profile Send private message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 225
Location: Gentoo forums

PostPosted: Sat Dec 23, 2023 4:46 pm    Post subject: Re: GRUB 2.12 doesn't boot Reply with quote

atchim wrote:
Is GRUB 2.12 really broken

sys-boot/grub-2.12 is testing, so yes, bugs are expected.

atchim wrote:
When I rebooted my laptop, I got the boot menu instead of the default initialization.

With 2.12, have you tried re-installing GRUB then regenerating config before rebooting?
Back to top
View user's profile Send private message
sam_
Developer
Developer


Joined: 14 Aug 2020
Posts: 1942

PostPosted: Sat Dec 23, 2023 6:01 pm    Post subject: Reply with quote

To be specific, make sure you run grub-install as well as grub-mkconfig.
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1222
Location: Motown

PostPosted: Sat Dec 23, 2023 6:12 pm    Post subject: Reply with quote

After install and config update system no longer boots:
Code:
error: 'symbol grub_is_shim_lock_enabled' not found

Yes, I ran the install (no erros) and the config update.
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
eeckwrk99
Apprentice
Apprentice


Joined: 14 Mar 2021
Posts: 225
Location: Gentoo forums

PostPosted: Sat Dec 23, 2023 7:38 pm    Post subject: Reply with quote

darkphader wrote:
After install and config update system no longer boots:
Code:
error: 'symbol grub_is_shim_lock_enabled' not found

Yes, I ran the install (no erros) and the config update.

Related bug report: bug #64406: error: symbol `grub_is_shim_lock_enabled` not found when trying to boot image
Possible solution: UEFI secure boot and shim support

Basically:
Code:
# grub-install --disable-shim-lock


Some users on EndeavourOS forums reported that it fixed the issue on their end, despite not having secure boot enabled.

Not sure what are the implications of using this option. I would wait for more experimented users to give their opinion before using it.


Last edited by eeckwrk99 on Sat Dec 23, 2023 7:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
Goverp
Advocate
Advocate


Joined: 07 Mar 2007
Posts: 2167

PostPosted: Sat Dec 23, 2023 7:45 pm    Post subject: Reply with quote

Interesting, I had a problem with the most recent update to GRUB-2.06 that I cured by installing 2.12 - no mention of shim locks!
_________________
Greybeard
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1222
Location: Motown

PostPosted: Sat Dec 23, 2023 9:26 pm    Post subject: Reply with quote

Some weirdness. Booted from a sysrescuecd and found this:

Code:
/boot/EFI/gentoo/grubx64.efi
and
/boot/EFI/EFI/gentoo/grubx64.efi

The file in the EFI/EFI path was time stamped per the last install. The other file in the single EFI path was older.
I copied the current file in the EFI/EFI path replacing the older one in the single EFI path and system is now up and running.

No clue why I have an extra EFI directory, however there seems to be some issues when running grub-install.

Per the wiki @ https://wiki.gentoo.org/wiki/GRUB
Code:
# grub-install
Installing for x86_64-efi platform.
grub-install: error: cannot find EFI directory.
or
Code:
# grub-install --efi-directory=/efi
Installing for x86_64-efi platform.
grub-install: error: /efi doesn't look like an EFI partition.


Per the Handbook @ https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Bootloader
Code:
grub-install --target=x86_64-efi --efi-directory=/efi
Installing for x86_64-efi platform.
grub-install: error: /efi doesn't look like an EFI partition.


If I edit the install
Code:
# grub-install --efi-directory=/boot/EFI
Installing for x86_64-efi platform.
Installation finished. No error reported.
The install appears correct but this puts grubx64.efi in the EFI/EFI path which doesn't work.

I need to edit the install as:
Code:
# grub-install --efi-directory=/boot
Installing for x86_64-efi platform.
Installation finished. No error reported.
Which puts the file in the apparent place it's needed - at /boot/EFI/gentoo/grubx64.efi
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
darkphader
Veteran
Veteran


Joined: 09 May 2002
Posts: 1222
Location: Motown

PostPosted: Sun Dec 24, 2023 4:11 am    Post subject: Reply with quote

I do get this QA notice when emerging grub:
Code:
QA: other                                                                                       
Problems with installed bash completions were found:                                           
                                                                                               
        grub: 'have' command is deprecated and must not be used.                               
        grub: incorrect name, no completions for 'grub' command defined.                       
        grub-set-default: missing alias (symlink) for completed command.                       
        grub-mkrescue: missing alias (symlink) for completed command.                           
        grub-mkconfig: missing alias (symlink) for completed command.                           
        grub-reboot: missing alias (symlink) for completed command.                             
        grub-install: missing alias (symlink) for completed command.                           
        grub-probe: missing alias (symlink) for completed command.                             
        grub-sparc64-setup: missing alias (symlink) for completed command.                     
        grub-mkimage: missing alias (symlink) for completed command.                           
        grub-bios-setup: missing alias (symlink) for completed command.                         
        grub-script-check: missing alias (symlink) for completed command.                       
        grub-mkfont: missing alias (symlink) for completed command.                             
        grub-editenv: missing alias (symlink) for completed command.                           
        grub-mkpasswd-pbkdf2: missing alias (symlink) for completed command.                   

Code:
eselect bashcomp list
shows grub completions enabled
_________________
WYSIWYG - What You See Is What You Grep
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 484

PostPosted: Sun Dec 24, 2023 9:11 am    Post subject: Reply with quote

@darkphader why do you hijack this thread? Your problems are very likely caused by a wrong setup.
Back to top
View user's profile Send private message
Schrekkorr
n00b
n00b


Joined: 27 Dec 2023
Posts: 1

PostPosted: Wed Dec 27, 2023 10:34 am    Post subject: Reply with quote

darkphader wrote:
Some weirdness. Booted from a sysrescuecd and found this:

Code:
/boot/EFI/gentoo/grubx64.efi
and
/boot/EFI/EFI/gentoo/grubx64.efi


...


I had the same issue. This post helped. Thanks. :-)
Back to top
View user's profile Send private message
B2382F29
n00b
n00b


Joined: 08 Sep 2004
Posts: 12

PostPosted: Thu Dec 28, 2023 9:30 am    Post subject: Reply with quote

Same issue here.

It seems by specifying /boot/EFI as the path in grub-install it puts the files into the wrong /boot/EFI/EFI directory.

I manually copied them up to the /boot/EFI directory and now it is working.

Thanks @darkphader
Back to top
View user's profile Send private message
sMueggli
Guru
Guru


Joined: 03 Sep 2022
Posts: 484

PostPosted: Thu Dec 28, 2023 5:33 pm    Post subject: Reply with quote

B2382F29 wrote:
It seems by specifying /boot/EFI as the path in grub-install it puts the files into the wrong /boot/EFI/EFI directory.


Why do you think /boot/EFI is the correct path for the ESP? Did you mount the ESP to /boot/EFI so that your bootloader is located under /boot/EFI/EFI/gentoo/grubx64.efi?

If you mount your ESP to /boot, then "grub-install --efi-directory=/boot" is pointing to the root of the ESP.

The traditional mount point for the ESP in Grub is /boot/efi and the bootloader is located under /boot/efi/EFI/gentoo/grubx64.efi.
Back to top
View user's profile Send private message
CaptainBlood
Advocate
Advocate


Joined: 24 Jan 2010
Posts: 3830

PostPosted: Sat Dec 30, 2023 6:44 pm    Post subject: Reply with quote

@sMueggli
+1

Oh boy! I've been doing it badly as I disgarded to reinstall after generating new /boot/efi/EFI/gentoo/grub/grub.cfg, hoping it would be baclwards compatible...
Dang! I was so wrong. :oops: :lol:

Thks 4 ur attention, interest & support.
_________________
USE="-* ..." in /etc/portage/make.conf here, i.e. a countermeasure to portage implicit braces, belt & diaper paradigm
LT: "I've been doing a passable imitation of the Fontana di Trevi, except my medium is mucus. Sooo much mucus. "
Back to top
View user's profile Send private message
Massimo B.
Veteran
Veteran


Joined: 09 Feb 2005
Posts: 1810
Location: PB, Germany

PostPosted: Tue Apr 16, 2024 7:14 am    Post subject: Reply with quote

darkphader wrote:
Code:
error: 'symbol grub_is_shim_lock_enabled' not found
I had this on a Gentoo that can boot natively but also from Windows as Virtual Machine with physical harddrive access. Native boot still worked while the VM boot did show this error.
I tried different grub-instal, with --removable and without, also trying --disable-shim-lock. Didn't help.
Only a new grub-mkconfig did fix it, why?
_________________
HP ZBook Power 15.6" G8 i7-11800H|HP EliteDesk 800G1 i7-4790|HP Compaq Pro 6300 i7-3770
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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