riscv/server: add grub efi bootloader in netboot tarballs

This allows netboot tarballs to be PXE booted on QEMU; previously, the tarball was missing bootloader.

Signed-off-by: Valentin Haudiquet <valentin.haudiquet@canonical.com>
This commit is contained in:
Valentin Haudiquet 2025-12-09 14:36:38 +01:00
parent ae1e5005aa
commit 9fdbaf8d6d
2 changed files with 16 additions and 0 deletions

View File

@ -1097,6 +1097,9 @@ case $PROJECT in
arm64)
add_package ubuntu-server-minimal.ubuntu-server.installer.$flavor.netboot shim-signed
;;
riscv64)
add_package ubuntu-server-minimal.ubuntu-server.installer.$flavor.netboot grub-efi-riscv64 grub-efi-riscv64-unsigned
;;
*)
add_package ubuntu-server-minimal.ubuntu-server.installer.$flavor.netboot
;;

View File

@ -123,6 +123,19 @@ LABEL install
kernel=linux.ubuntu
initrd=initrd.ubuntu
append=ip=dhcp iso-url=#ISOURL# ---
EOF
;;
riscv64)
mv chroot/usr/lib/grub/riscv64-efi/monolithic/grubnetriscv64.efi tarball/riscv64/grubriscv64.efi
mkdir tarball/riscv64/grub
cat > tarball/riscv64/grub/grub.cfg.in <<EOF
menuentry "Install Ubuntu Server" {
set gfxpayload=keep
linux linux iso-url=#ISOURL# ip=dhcp ---
initrd initrd
}
EOF
;;
esac