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

System stuck in grub rescue shell after post.sh (server) #138

Closed
leomeinel opened this issue Apr 17, 2023 · 21 comments · Fixed by #142
Closed

System stuck in grub rescue shell after post.sh (server) #138

leomeinel opened this issue Apr 17, 2023 · 21 comments · Fixed by #142
Assignees
Labels
bug Something isn't working

Comments

@leomeinel
Copy link
Owner

Now we are stuck in grub rescue shell after post.sh.
I will take a break and solve this another time! At least we are further than the EFI shell :D

On hardware it works without any problems now btw.

Reference: #130

@leomeinel leomeinel added the bug Something isn't working label Apr 17, 2023
@leomeinel leomeinel self-assigned this Apr 17, 2023
@leomeinel
Copy link
Owner Author

(tested on server)

@leomeinel
Copy link
Owner Author

2023-04-17T10-17-08

@leomeinel
Copy link
Owner Author

leomeinel commented Apr 17, 2023

[This may be related to] shim lock or grub not having all the modules preloaded

https://wejn.org/2021/09/fixing-grub-verification-requested-nobody-cares/

I guess I just need to add the flags to grub-install.

@leomeinel
Copy link
Owner Author

Still same error (tested on server)

@leomeinel
Copy link
Owner Author

leomeinel commented Apr 17, 2023

TODO:

  • track down what might've caused this since 2.0.0 (last tested version with logs)...
  • test main
  • test games
  • (test without secureboot)

@leomeinel
Copy link
Owner Author

Both games and main boot into efi shell after setup.sh.
None of this currently makes sense to me. I'll try to find a good debugging solution and may continue tomorrow.

@leomeinel leomeinel changed the title System stuck in grub rescue shell after post.sh System stuck in grub rescue shell after post.sh (server) Apr 17, 2023
@leomeinel leomeinel pinned this issue Apr 17, 2023
@leomeinel
Copy link
Owner Author

I don't know if anyone actually usews this repo besides me, but I'll pin relevant issues for now and add a note to the READMEs if this doesn't get fixed soon.

@leomeinel
Copy link
Owner Author

Also see #141

@leomeinel
Copy link
Owner Author

[This may be related to] shim lock or grub not having all the modules preloaded

https://wejn.org/2021/09/fixing-grub-verification-requested-nobody-cares/

I guess I just need to add the flags to grub-install.

Even tho not necessarily viable a lot of stuff written in the linked article is interesting and may help in solving this.

@leomeinel
Copy link
Owner Author

Just not using GRUB and finding an alternative that is more or less a drop-in-replacement might also be a good choice. I never liked grub, but I am almost certain that only grub supports my setup.

@leomeinel
Copy link
Owner Author

leomeinel commented Apr 17, 2023

EFISTUB
UKI
systemd-boot with sideloaded drivers
Comparison

systemd-boot seems like a good option. I doubt that everything will be supported by it however.

@leomeinel
Copy link
Owner Author

Not using grub anymore is the best solotion to this I can think of and it may be interesting to implement all of the stuff I did for grub for something else.
I'll find some time and work on this!

@leomeinel
Copy link
Owner Author

leomeinel commented Apr 17, 2023

Very similar setup

@leomeinel
Copy link
Owner Author

@leomeinel
Copy link
Owner Author

Also not sure what filesystem means exactly. EFI/BOOT/ROOT or all of those?

@leomeinel
Copy link
Owner Author

I'll have to rewrite cryptboot aswell or at least change a lot!

@leomeinel
Copy link
Owner Author

Hope this doesn't go "as well" as my try to switch to nftables.
I wanted to do this since the start, but after nftables cost me a looot of time I didn't bother anymore.

@leomeinel
Copy link
Owner Author

At least the switch finally justifies a fresh install of my current machines..

@leomeinel
Copy link
Owner Author

Another advantage of systemd-boot

Not sure if I'm entirely wrong, but the --no-variables flag of bootctl kind of implies that there is more or less a --removable flag.

@leomeinel
Copy link
Owner Author

Damn, I didn't notice at all that until now I have been using sgdisk -t wrong..
All previous systems now have a linux raid partition type as their efi.

@leomeinel
Copy link
Owner Author

Damn, I didn't notice at all that until now I have been using sgdisk -t wrong.. All previous systems now have a linux raid partition type as their efi.

I might've also just copied and pasted the previous line and forgot, but I haven't noticed at all.. that's dumb

@leomeinel leomeinel unpinned this issue Apr 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant