mount_disk_image function expects root partition to be at number 1. But some images require the root partition to be at other some other number. For example, EKS Anywhere images for bare metal are used with Tinkerbell deployment with a default configuration that expects the root device to be found at /dev/sda2. The knowledge of the root device path is needed to modify certain files in the root filesystem (e.g. cloud-init configs) for the machine to join Kubernetes cluster control plane. The partition number can be changed in the hook by "sgidsk --transpose". Allow the hook to use mount_disk_image with custom root partition number by making it an optional third parameter that defaults to 1.ubuntu-core-desktop-noble
parent
471f45101e
commit
dab1f8c765
Loading…
Reference in new issue