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

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 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.

@vojtechtrefny vojtechtrefny marked this pull request as ready for review November 19, 2024 12:20
Exceptions are DASD drives on s390 and 32bit ARM. Everywhere else
GPT will be default.

Resolves: RHEL-52200
@vojtechtrefny vojtechtrefny merged commit 3633716 into storaged-project:rhel10-branch Nov 19, 2024
3 checks passed
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