Skip to content

Fix setup of partition IDs - #3037

Open
schaefi wants to merge 2 commits into
mainfrom
fix_partition_id_for_lvm
Open

Fix setup of partition IDs#3037
schaefi wants to merge 2 commits into
mainfrom
fix_partition_id_for_lvm

Conversation

@schaefi

@schaefi schaefi commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

When setting the partition type code (gUID, UUID) the partition id hex code gets resetted to Linux(83) when it should stay at the value it had before. This causes for example on LVM type(8e) partitions a reset to Linux(83) which is unwanted. With this commit we make sure the partition type hex code gets reset to the correct value. This Fixes #3036

@schaefi
schaefi requested a review from Conan-Kudo August 20, 2026 13:29
@schaefi schaefi self-assigned this Aug 20, 2026
@schaefi

schaefi commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator Author

@Conan-Kudo please wait with merging after my tests are complete

@Conan-Kudo

Copy link
Copy Markdown
Member

Do you have a test of an MBR-only image to verify?

@schaefi

schaefi commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator Author

Do you have a test of an MBR-only image to verify?

We can add that. I added it here do the PR... still waiting for the tests to finish

@schaefi
schaefi force-pushed the fix_partition_id_for_lvm branch from aad327b to 0311fb9 Compare August 20, 2026 14:36
@schaefi

schaefi commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator Author

@schaefi
schaefi force-pushed the fix_partition_id_for_lvm branch from 0311fb9 to 0c250c5 Compare August 20, 2026 15:02
When setting the partition type code (gUID, UUID) the partition
id hex code gets resetted to Linux(83) when it should stay at
the value it had before. This causes for example on LVM type(8e)
partitions a reset to Linux(83) which is unwanted. With this
commit we make sure the partition type hex code gets reset
to the correct value. This Fixes #3036
Add a profile for building a DOS only LVM image and one with GPT
@schaefi
schaefi force-pushed the fix_partition_id_for_lvm branch from 0c250c5 to 12e71c5 Compare August 20, 2026 15:21
@schaefi

schaefi commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator Author

@Conan-Kudo two images were built, please double check

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.

MBR disk images with LVM don't mark the partitions as type LVM

2 participants