Imported 2.773

No reason for CPC update specified.
This commit is contained in:
CloudBuilder 2022-07-31 13:38:14 +00:00
parent 7478fdfae8
commit 01d6be2f85
2 changed files with 18 additions and 3 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
livecd-rootfs (2.773) kinetic; urgency=medium
* When adding the new RISC-V platforms, some of the generic non-SUBARCH code
went missing and some invalid assumptions have been made, causing cloud
images to fail building. This upload fixes these.
-- Łukasz 'sil2100' Zemczak <lukasz.zemczak@ubuntu.com> Fri, 29 Jul 2022 18:05:09 +0200
livecd-rootfs (2.772) kinetic; urgency=medium
* When converting images to qcow2 stop using the traditional image format

View File

@ -219,8 +219,9 @@ install_grub() {
fi
;;
riscv64)
# TODO grub-efi-riscv64 does not exist yet on riscv64
# TODO grub-efi-riscv64 exists, but is not used by all the images yet
if [ -n "${SUBARCH:-}" ]; then
# Per-device images
case "${SUBARCH}" in
"nezha")
echo "Installing U-Boot for Nezha board" &1>2
@ -327,10 +328,16 @@ EOF
setup_cinocloud mountpoint
;;
esac
else
# Other images e.g. cloud images
chroot mountpoint apt-get install -qqy u-boot-menu #grub-efi-riscv64
efi_target=riscv64-efi
chroot mountpoint u-boot-update
fi
if [ "${SUBARCH}" != "visionfive" ] && [ "${SUBARCH}" != "nezha" ]; then
## TODO remove below once we have grub-efi-riscv64
if [ "${SUBARCH:-}" != "visionfive" ] && [ "${SUBARCH:-}" != "nezha" ]; then
## TODO remove below once we have grub-efi-riscv64 for the platforms
rm mountpoint/tmp/device.map
umount mountpoint/boot/efi
mount