[RFC] distro: drop hardcoded partiton table UUIDs #816
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The current distro partition tables contain hardcoded UUIDs for various elements like the partition table, the partition and the filesystem UUIDs. Hardcoding these seems slightly unusual, given that a UUID is supposed to be (practically) unique and that the images library will DTRT if no UUID is set.
This commit removes the hardcoded PartitionTable UUID as a starting point to spark a discussion. I have only a limited understanding of the history of this and while I did do a bit of git archeology I could not find a commit with a rational why the UUIDs are hardcoded [0] so I'm asking for a review from some of the people who are around for a long time. I would love to understand if there is a reason to have these hardcoded UUIDs and i'm happy to do a PR that adds comments etc that will explain this reason. If however we do not need/want the hardcoded UUIDs i will continue and remove them from the partition and filesystems too. If we go down this path I'm sure this is a risky change because some people probably rely by now on the fact that the UUID is actually quite predictable (also https://xkcd.com/1172) and because this behavior is here since day 1 (or so it seems). Also @achilleas-k mentioned "Chestertons fence" to me so I'm trying to be extra cautious. Help is greatly appreciated to help me understand this better!
C.f. osbuild/bootc-image-builder#568
[0] I found
osbuild/osbuild-composer@2225463#diff-de240f0bca8f03daafeb653ff429aafa12f43b5e0dc8ba327c56108a6ff864f3R115 and osbuild/osbuild-composer@0dd17ae