Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 934320 - sys-boot/refind-0.14.0.2-r1: rEFInd fails to load if kernels are located on ESP
Summary: sys-boot/refind-0.14.0.2-r1: rEFInd fails to load if kernels are located on ESP
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal major
Assignee: Viorel Munteanu
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-14 22:39 UTC by kernaltrap
Modified: 2024-07-25 07:10 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Output of emerge --info, along with output of refind-install and efibootmgr (additional-info.log,21.51 KB, text/x-log)
2024-06-14 22:40 UTC, kernaltrap
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kernaltrap 2024-06-14 22:39:34 UTC
When booting rEFInd and kernels are located on the ESP, it will fail to load. The behavior is strange, it seems to work the first time but next boot it will either hang the EFI loader, or will spit garbled data on the screen in yellow text. This happens to me, but only for a split second. Other users have it hang as soon as the text appears. For me, it kicks me back to my EFI settings as I only have rEFInd set as a boot option. Currently I am falling back to GRUB to boot.

Reproducible: Sometimes

Steps to Reproduce:
1. Install kernels to a ESP, or a drive formatted as fat32
2. Load rEFInd
Actual Results:  
rEFInd hangs the EFI loader, or kicks the user to EFI settings (or the next boot entry)

Expected Results:  
rEFInd should load normally, and allow you to boot a kernel.
Comment 1 kernaltrap 2024-06-14 22:40:04 UTC
Created attachment 895837 [details]
Output of emerge --info, along with output of refind-install and efibootmgr
Comment 2 Viorel Munteanu gentoo-dev 2024-06-16 12:27:48 UTC
Can you try with an older version of sys-boot/gnu-efi ?  For example sys-boot/gnu-efi-3.0.17
Comment 3 kernaltrap 2024-06-16 19:48:29 UTC
This fixed the problem. Though, its not a permanent fix. Possibly we could have the rEFInd ebuild pull in that version specifically, though I don't know if that follows the ebuild writing guidelines.
Comment 4 Viorel Munteanu gentoo-dev 2024-06-17 05:59:52 UTC
(In reply to kernaltrap from comment #3)
> This fixed the problem. Though, its not a permanent fix.

Thank you for confirming it.  It's not a permanent fix, but it gives me a place to start.
Comment 5 Larry the Git Cow gentoo-dev 2024-06-17 19:01:30 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=51b5ed3142c7572c7549c90684cc08ce494f027b

commit 51b5ed3142c7572c7549c90684cc08ce494f027b
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2024-06-17 18:52:53 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2024-06-17 19:01:08 +0000

    sys-boot/refind: add 0.14.2
    
    Adding it unkeyworded for now because of bug #934474
    
    Bug: https://bugs.gentoo.org/934320
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 sys-boot/refind/Manifest                           |   1 +
 .../refind/files/refind-sbat-gentoo-0.14.2.csv     |   3 +
 sys-boot/refind/refind-0.14.2.ebuild               | 178 +++++++++++++++++++++
 3 files changed, 182 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=312bb3bcffae9e7abb7bed8ae4c660c485ce053e

commit 312bb3bcffae9e7abb7bed8ae4c660c485ce053e
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2024-06-17 17:57:26 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2024-06-17 19:01:08 +0000

    sys-boot/refind: pin sys-boot/gnu-efi to an older version
    
    sys-boot/refind-0.14.0.2 (stable) does not boot with
    >=sys-boot/gnu-efi-3.0.18, so pin it to max 3.0.17.
    
    Bug: https://bugs.gentoo.org/934320
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 sys-boot/refind/refind-0.14.0.2-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Comment 6 Larry the Git Cow gentoo-dev 2024-07-25 07:10:16 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7cea90df5543b29b629b40e12235e3cc864bc698

commit 7cea90df5543b29b629b40e12235e3cc864bc698
Author:     Viorel Munteanu <ceamac@gentoo.org>
AuthorDate: 2024-07-25 07:06:48 +0000
Commit:     Viorel Munteanu <ceamac@gentoo.org>
CommitDate: 2024-07-25 07:09:45 +0000

    sys-boot/refind: add fix for gnu-efi 3.0.18
    
    Closes: https://bugs.gentoo.org/934474
    Closes: https://bugs.gentoo.org/934320
    Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>

 .../files/refind-0.14.2-fix-gnu-efi-3.0.18.patch   | 77 ++++++++++++++++++++++
 ...efind-0.14.2.ebuild => refind-0.14.2-r1.ebuild} | 25 ++-----
 2 files changed, 82 insertions(+), 20 deletions(-)