mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-12-13 07:03:34 +00:00
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:
parent
ae1e5005aa
commit
9fdbaf8d6d
@ -1097,6 +1097,9 @@ case $PROJECT in
|
|||||||
arm64)
|
arm64)
|
||||||
add_package ubuntu-server-minimal.ubuntu-server.installer.$flavor.netboot shim-signed
|
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
|
add_package ubuntu-server-minimal.ubuntu-server.installer.$flavor.netboot
|
||||||
;;
|
;;
|
||||||
|
|||||||
@ -123,6 +123,19 @@ LABEL install
|
|||||||
kernel=linux.ubuntu
|
kernel=linux.ubuntu
|
||||||
initrd=initrd.ubuntu
|
initrd=initrd.ubuntu
|
||||||
append=ip=dhcp iso-url=#ISOURL# ---
|
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
|
EOF
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user