-
Notifications
You must be signed in to change notification settings - Fork 348
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
Prefer GPT instead of legacy MBR, even on legacy BIOS systems #4104
Conversation
Hello @Conan-Kudo! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found: There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻 Comment last updated at 2022-05-13 16:21:47 UTC |
As part of this change, convert the inst.gpt flag to inst.mbr to allow optionally reverting back to the previous behavior.
Hi @vojtechtrefny what do you think about this change? I have a feeling that there is a reason why we are using MBR on the legacy BIOS. |
This proposed Change is associated with this PR: https://fedoraproject.org/wiki/Changes/GPTforBIOSbyDefault |
Also I would like to have @jstodola to take a look here too. |
Just looking on this briefly, we definitely can't just switch kernel boot argument like that. Just because Fedora is not the only product we support and not everyone could be happy about that. We need to have both probably. |
|
Hi, I have no problem with this from the storage point of view. We'll also need to change the order of disklabels in blivet in |
I have to read the things in more detail before answering (especially late) :D. Yes, you are correct. In any case, we had a discussion about this in the team and here are some notes. We have green on doing this change, seems that there is no objections. This PR should change to a key=value solution. Instead of replacing the GPT with MBR, let's create something like And for configuration file value, we could use |
I also have no objections with the change. BTW, GPT is already used by default on BIOS systems for disks bigger than 2 TiB anyway. A possible issue would be with existing kickstarts defining custom partitioning and not having biosboot partition specified, they will need to be updated. Also, what would the installer behavior look like if |
What does everyone think about hybridizing all installations when This would follow the current use in Fedora Cloud edition. The argument being use of a single code path, fewer exceptions, and no regrets like in the weird cases where the user picks UEFI USB boot for installation but the CSM is active for the installed system and thus boots BIOS. Really hard for users to troubleshoot that, or for Fedora user-user support to help users navigate, and hard to document the variable firmware UIs. Or alternatively, three options: mbr/bios, gpt/uefi, gpt/hybrid - where there is no gpt/bios (just drop it, as-in the exclusive GPT+BIOS type of installation doesn't exist, you'd have to go with gpt/hybrid to get a BIOS installation on GPT, but you'd also get an ESP properly setup too). Downstreams can choose to drop BIOS support entirely by only supporting gpt/uefi. And Fedora would use gpt/hybrid for now until it's certain BIOS is being retired. Footnote that mbr/uefi happens with Anaconda when (a) MBR exists (b) 1+ partitions are being preserved (c) UEFI firmware is detected. This is a bit of an odd duck. It is in the UEFI spec though. I'm ambivalent whether it should be deprecated or not. |
Replied on our mailing list. |
Yes, we should follow the same behavior as we have now. The boot option would be more a hint for Anaconda than a strong rule. |
I'm still most convinced for the |
Hi @Conan-Kudo, will you update the pull request, or should we take it over? |
I would like this to happen, I just don't know how to implement it. |
Let me give it a try to update to use the disklabel option thing you asked for, and if I can't figure it out, you can take over. |
I haven't been able to make time to figure it out. @poncovka, @jkonecny12, can y'all take over? |
Hi! I am sorry it took so long to get back to this. I have started to implement the solution with
The "previous behavior" is that we let Blivet to choose whatever they suggest. I would expect If you just need something that will allow to "revert the change", then |
@poncovka The idea of the code change is to make Anaconda's baseline default change so that Fedora (and derivatives) get it because that's Anaconda's default. For all the other deliverables, we're already producing hybrid boot images that are GPT formatted already. I actually wanted to pair this with always installing the EFI bootloader stuff on BIOS systems too so that an install can be trivially switched from BIOS to UEFI (either by moving the disk to new hardware, or re-imaging, reconfiguring the firmware, etc.). I just couldn't figure out how to do it. |
@Conan-Kudo I am sorry, I don't understand what do you want me to do based on that. I have opened a pull request for I am fine with both solutions, just wanted to explain the differences. |
Oh, I didn't see the other option, that's why I was confused. I'm closing this in favor of #4232 |
As part of this change, convert the
inst.gpt
flag toinst.mbr
toallow optionally reverting back to the previous behavior.