Sgdisk utility missing in the VM rootfs, cloud-init disk operations fail without it
For archlinux disk image builds that will run cloud-init, the sgdisk utility has to be installed.
Without it cloud-init disk partition operations fail.
One cannot use cloud-init to install sgdisk because the disk partition operations run very early during the boot sequence, before packages can be installed.
My archlinux gitlab user cannot create a branch in this repo, therefore I cannot create a merge ruquest with the fix.
A diff of what is needed to be installed, so that this issue is fixed, can be found below:
1 file changed, 1 insertion(+), 1 deletion(-)
build.sh | 2 +-
modified build.sh
@@ -77,7 +77,7 @@ EOF
echo "Server = ${MIRROR}" >mirrorlist
# We use the hosts package cache
- pacstrap -c -C pacman.conf -K -M "${MOUNT}" base linux grub openssh sudo btrfs-progs dosfstools efibootmgr qemu-guest-agent
+ pacstrap -c -C pacman.conf -K -M "${MOUNT}" base linux grub openssh sudo btrfs-progs dosfstools efibootmgr gptfdisk qemu-guest-agent
# Workaround for https://gitlab.archlinux.org/archlinux/arch-install-scripts/-/issues/56
gpgconf --homedir "${MOUNT}/etc/pacman.d/gnupg" --kill gpg-agent
cp mirrorlist "${MOUNT}/etc/pacman.d/"