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

bib: switch arch64 back from "gpt" to "dos" to unbreak all Pis with older firmware #586

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mvo5
Copy link
Collaborator

@mvo5 mvo5 commented Aug 5, 2024

Today I learned that this change to move to "gpt" does not only affect RPi3 but also newer PIs that have not updated their firmware yet. This commit moves back to "dos" for maximum compatibility.

Parallel to this we should IMHO ASAP support a default partition table inside the container (e.g. via /blueprint.json and advanced partitioning there) that is then read by bib and applied so that we can be maximum compatible. Unti lthat is done IMHO the default should optimize for the 90% users which I think is the RPi on aarch64.

When reviewing #582 I was a bit too enthusiastic about the de-dup (which I totally love) and overlooked that it also switches the default partition type to "gpt" on aarch. This has ramifications for the pi3 that does not support gpt. Given that the pi3 was released in 2016 and the pi4 is 2019 it is maybe okay to just not support the pi3 but I wanted to open this to make sure it's a conscious decision - alternatively we could do smarter stuff and get the partition table from the container and leave it to the container to decide what they want to support.

@mvo5 mvo5 marked this pull request as draft August 5, 2024 11:48
@cgwalters
Copy link
Contributor

cgwalters commented Aug 5, 2024 via email

@mvo5
Copy link
Collaborator Author

mvo5 commented Aug 5, 2024

Thanks for your input here, I will close it for now and if it becomes an issue we can revisit it and add a bib switch to make it an explicit operation.

@mvo5 mvo5 closed this Aug 5, 2024
@mvo5 mvo5 reopened this Dec 5, 2024
@mvo5 mvo5 changed the title [RFC] bib: switch arch64 back from "gpt" to "dos" to unbreak pi3 bib: switch arch64 back from "gpt" to "dos" to unbreak all Pis with older firmware Dec 5, 2024
The raspberry pi3 and newer version with outdated firmware
apparently do not support "gpt" partition tables. This
commit moves back to "dos" for maximum compatibility.

Once we have support to ship default partition tables
inside the container we can drop this again but for now
it seems the most common users of bootc on aarch64 are some
variant of a RPi so ideally the experience is as smooth as
possible there.
@mvo5 mvo5 marked this pull request as ready for review December 5, 2024 15:27
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