Allow disk_setup of gpt partitions in minimal images where sgdisk utility is not present. Fallback to sfdisk if necessary for handling GPT partition inspection and creation.
Steps to reproduce
Launch an ubuntu cloud image, with sgdisk removed , providing disk_setup: in cloud-config which defines a gpt partition table type
Expect tracebacks on inability to find sgdisk file or directory
Enhancement
Allow disk_setup of gpt partitions in minimal images where
sgdisk
utility is not present. Fallback tosfdisk
if necessary for handling GPT partition inspection and creation.Steps to reproduce
disk_setup:
in cloud-config which defines a gpt partition table typetest procedure
apply the following diff to tip of main
run integration test, keeping the instance around after test completion
See warnings about disk setup failing due to missing utilities: