Open jlebon opened 3 months ago
cc @tormath1 @pothos for thoughts on this from the Flatcar Linux side.
With sfdisk we can skip running partx here: https://github.com/coreos/ignition/blob/3b3a27b64541d01b7bb18f5f923ca3a13dcea98e/internal/exec/stages/disks/partitions.go#L545 (And later delete it when only sfdisk woud be supported)
We'll have to update things downstream as well. Filed: https://github.com/coreos/fedora-coreos-tracker/issues/1787
Found some examples on how to pass commands to sfdisks:
sfdisk is part of util-linux and has supported GPT partitioning for a while now. It'd be desirable to support using sfdisk instead of sgdisk for partitioning for OSes that want to shed that dependency.
Proposal:
ignition.partition-backend=(sfdisk|sgdisk)
) to override compile-time defaultsOn the FCOS side, we can start using the sfdisk backend in some of the non-production streams to get some early testing, and if deemed necessary, bake it in the
next
stream as well.