Draft
Replace sgdisk with sfdisk in kiwi and dracut GPT partition flows#3006
sgdisk with sfdisk in kiwi and dracut GPT partition flows#3006Conversation
Copilot created this pull request from a session on behalf of
schaefi
June 17, 2026 14:30
View session
schaefi
force-pushed
the
copilot/replace-sgdisk-with-sfdisk
branch
2 times, most recently
from
June 17, 2026 17:14
a662499 to
b3a7578
Compare
drop gdisk/gptfdisk packages from requirements This Fixes #2804
Fix resize_table, invalid and unneeded lba header Fix exception handling, use KIWIGeometryError instead of RuntimeError Fix tests, all code must be covered by tests
schaefi
force-pushed
the
copilot/replace-sgdisk-with-sfdisk
branch
from
June 17, 2026 19:50
b3a7578 to
d698efd
Compare
Wrong implementation by Copilot
Collaborator
|
This change cannot be made because Something like this cannot be represented by |
|
This PR is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed as part of the community meeting. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This updates GPT partition handling under
kiwi/anddracut/to usesfdiskinstead ofsgdisk. The change covers partition creation, type updates, GPT/MBR transitions, and image/disk initialization paths that previously depended onsgdisk.GPT partitioner migration
kiwi/partitioner/gpt.pyto drive GPT operations throughsfdisk.sfdiskinput, including explicit partition numbers, names, sizes, and optional start sectors.sfdisk --part-type.sfdisk --dump+table-length:rewrite.Disk/table rewrite paths
kiwi/storage/disk.pywithsfdisk --wipe alwaysand explicit label recreation.sfdisklayouts instead ofsgdisktransforms.Bootloader image creation
kiwi/bootloader/config/systemd_boot.pyto create its GPT partition viasfdisk.Dracut runtime changes
dracut/modules.d/59kiwi-lib/kiwi-partitions-lib.shwithsfdisk.sfdisk --label-nested=mbr.sgdiskfrom the dracut module runtime dependency list.Packaging/test alignment
sfdiskcommand shapes and scripted input flow.Example of the new GPT partition creation pattern: