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

Make GPT default label type on all architectures #1317

Draft
wants to merge 1 commit into
base: rhel10-branch
Choose a base branch
from

Conversation

vojtechtrefny
Copy link
Member

Exceptions are DASD drives on s390 and 32bit ARM. Everywhere else GPT will be default.

Copy link
Contributor

@cgwalters cgwalters left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks sane to me, thanks for doing this!

For bootc we'll need to handle msdos for upgrade scenarios for the forseeable future but I think GPT is the right new default.

blivet/formats/disklabel.py Outdated Show resolved Hide resolved
elif arch.is_aarch64() or arch.is_x86(bits=64) or (arch.is_efi() and not arch.is_arm()):
label_types = ["gpt", "msdos"]
# prefet msdos on 32-bit ARM
elif arch.is_arm():
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's confusing to me that is_arm means 32 bit, is this because the other arch string is aarch64?

Maybe worth a followup to rename is_arm to is_arm32 or so

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The name is unfortunate, I had to check myself what is_arm actually means. We have arch.is_arm which means 32bit ARM and arch.is_aarch64 for 64bit ARM.

Exceptions are DASD drives on s390 and 32bit ARM. Everywhere else
GPT will be default.
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

Successfully merging this pull request may close these issues.

2 participants