Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batocera V39 update will not run rEFInd by default. #107

Open
nnierrr opened this issue Jan 28, 2024 · 7 comments
Open

Batocera V39 update will not run rEFInd by default. #107

nnierrr opened this issue Jan 28, 2024 · 7 comments

Comments

@nnierrr
Copy link

nnierrr commented Jan 28, 2024

Good Day,

After I update to betocera v39, the steam deck is now booting the batocera by default. Before the update it was fine.

I already tried to "create and install config" in rEFInd UI it will work temporary. When I tried to select batocera and restart the steam deck, it will boot to batocera by default again.

Hopefully, someone can check this.

Thank you

@jlobue10
Copy link
Owner

I am assuming that when Batocera ran, it created its own EFI entry that is enabled by default. Can you show the me the output of efibootmgr from SteamOS?

@F0L1
Copy link

F0L1 commented Apr 6, 2024

I can confirm this. If you boot batocera then go shutdown, it sets itself as next boot (not refind).
However I have found, if you boot batocera, then choose restart, it does not alter. When it restarts it loads refind.
If you manually select steam through bios, it boots and bootnext is set to refind again.

After batocera restart, boot manager looks like this;
BootNext: 0003
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0002,0003,0000,0001,2001,2002,2003
Boot0000* SteamOS HD(1,GPT,e959ff5c-cc40-404f-b914-fbaff3eb3695,0x800,0x20000)/File(\EFI\steamos\steamcl.efi)
Boot0001* EFI SD/MMC Card (HP BT1D 4S#ᅳ) PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x0)/SD(0)/HD(1,GPT,8f2fb19d-d07e-4c20-8e09-38673ad5b335,0x800,0xc00000)RC
Boot0002 Windows Boot Manager HD(1,GPT,e959ff5c-cc40-404f-b914-fbaff3eb3695,0x800,0x20000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000031000100000010000000040000007fff0400
Boot0003* rEFInd HD(1,GPT,e959ff5c-cc40-404f-b914-fbaff3eb3695,0x800,0x20000)/File(\EFI\refind\refind_x64.efi)
Boot0009* UEFI Misc Device VenHw(77e79a1e-e1fb-491f-a7c1-fa1b5412532a){auto_created_boot_option}
Boot000A* UEFI Misc Device 2 VenHw(1c54c333-24ff-4506-a9d6-0a624e09ae7e){auto_created_boot_option}
Boot000B* UEFI Misc Device 3 VenHw(8f1c1ac6-fbc0-4dab-a8be-b412a13c8b45){auto_created_boot_option}
Boot000C* UEFI Misc Device 4 VenHw(7517821f-d9e1-44c1-a75a-d054cef3f8f8){auto_created_boot_option}
Boot000D* UEFI Misc Device 5 VenHw(e0ba9b98-dd2d-4434-bb94-599cc9e4305d){auto_created_boot_option}
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC

After batocera shutdown, boot manager looks like this;
BootNext: 0001
BootCurrent: 0000
Timeout: 0 seconds
BootOrder: 0002,0003,0000,0001,2001,2002,2003
Boot0000* SteamOS HD(1,GPT,e959ff5c-cc40-404f-b914-fbaff3eb3695,0x800,0x20000)/File(\EFI\steamos\steamcl.efi)
Boot0001* EFI SD/MMC Card (HP BT1D 4S#ᅳ) PciRoot(0x0)/Pci(0x1,0x3)/Pci(0x0,0x0)/SD(0)/HD(1,GPT,8f2fb19d-d07e-4c20-8e09-38673ad5b335,0x800,0xc00000)RC
Boot0002 Windows Boot Manager HD(1,GPT,e959ff5c-cc40-404f-b914-fbaff3eb3695,0x800,0x20000)/File(\EFI\Microsoft\Boot\bootmgfw.efi)57494e444f5753000100000088000000780000004200430044004f0042004a004500430054003d007b00390064006500610038003600320063002d0035006300640064002d0034006500370030002d0061006300630031002d006600330032006200330034003400640034003700390035007d00000031000100000010000000040000007fff0400
Boot0003* rEFInd HD(1,GPT,e959ff5c-cc40-404f-b914-fbaff3eb3695,0x800,0x20000)/File(\EFI\refind\refind_x64.efi)
Boot0009* UEFI Misc Device VenHw(77e79a1e-e1fb-491f-a7c1-fa1b5412532a){auto_created_boot_option}
Boot000A* UEFI Misc Device 2 VenHw(1c54c333-24ff-4506-a9d6-0a624e09ae7e){auto_created_boot_option}
Boot000B* UEFI Misc Device 3 VenHw(8f1c1ac6-fbc0-4dab-a8be-b412a13c8b45){auto_created_boot_option}
Boot000C* UEFI Misc Device 4 VenHw(7517821f-d9e1-44c1-a75a-d054cef3f8f8){auto_created_boot_option}
Boot000D* UEFI Misc Device 5 VenHw(e0ba9b98-dd2d-4434-bb94-599cc9e4305d){auto_created_boot_option}
Boot2001* EFI USB Device RC
Boot2002* EFI DVD/CDROM RC
Boot2003* EFI Network RC

@Bling4Bling
Copy link

Hello i have the same problem, Are there any fixes for this ? and how is it with the batocera v40 nightly ? i think the same or ?

@jlobue10
Copy link
Owner

jlobue10 commented May 9, 2024

I am not sure why or how Batocera is setting the BootNext flag. I will have to debug when I find time, unless some helpful person can do that for me. Normally, that is not something the OS cares to set. We are only setting that BootNext entry on the SteamOS side (with a service call) for rEFInd to get around the efibootmgr command not working to disable the Windows EFI entry from SteamOS.

@Bling4Bling
Copy link

Hello maybe it is something with the refind config? Try to change the efi bath from batocera do the \EFI\batocera\grubx64.efi
This should bypass the secure boot thing.
Hopefully this is a help.

@Adame1928
Copy link

Hello maybe it is something with the refind config? Try to change the efi bath from batocera do the \EFI\batocera\grubx64.efi This should bypass the secure boot thing. Hopefully this is a help.

I have just tried this and on shutdown, it's still automatically booting into Batocera.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants
@jlobue10 @nnierrr @F0L1 @Adame1928 @Bling4Bling and others