[neon/neon/livecd-rootfs/Neon/release-lts] /: 2.664.24 from patch at https://launchpad.net/ubuntu/+source/livecd-rootfs

Jonathan Riddell null at kde.org
Tue Jul 6 11:38:51 BST 2021


Git commit 4587c509087549b3ac17b132d74ae5e1c8d8887d by Jonathan Riddell.
Committed on 06/07/2021 at 10:38.
Pushed by jriddell into branch 'Neon/release-lts'.

2.664.24 from patch at https://launchpad.net/ubuntu/+source/livecd-rootfs

M  +7    -0    debian/changelog
M  +6    -2    live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary
M  +1    -1    live-build/ubuntu-cpc/hooks.d/base/qcow2-image.binary

https://invent.kde.org/neon/neon/livecd-rootfs/commit/4587c509087549b3ac17b132d74ae5e1c8d8887d

diff --git a/debian/changelog b/debian/changelog
index 21558394..bd800cb1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+livecd-rootfs (2.664.24) focal; urgency=medium
+
+  * Backport generalising of the riscv64 images from hirsute to support
+    building separate unmatched and unleashed images in focal (LP: #1932014)
+
+ -- Ɓukasz 'sil2100' Zemczak <lukasz.zemczak at ubuntu.com>  Tue, 15 Jun 2021 13:33:33 +0200
+
 livecd-rootfs (2.664.23) focal; urgency=medium
 
   * Adding dependencies for Active Directory support (LP: #1921374)
diff --git a/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary b/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary
index 5295d45f..b3f4613a 100755
--- a/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary
+++ b/live-build/ubuntu-cpc/hooks.d/base/disk-image-uefi.binary
@@ -136,13 +136,17 @@ install_grub() {
             chroot mountpoint u-boot-update
 
             if [ -n "${SUBARCH:-}" ]; then
+                u_boot_arch="${SUBARCH}"
+                if [ "${u_boot_arch}" = "hifive" ]; then
+                    u_boot_arch=sifive_fu540
+                fi
                 chroot mountpoint apt-get install -qqy u-boot-sifive
                 # FSBL, which gets U-Boot SPL
                 loader1="/dev/mapper${loop_device///dev/}p13"
                 # The real U-Boot
                 loader2="/dev/mapper${loop_device///dev/}p14"
-                dd if=mountpoint/usr/lib/u-boot/sifive_fu540/u-boot-spl.bin of=$loader1
-                dd if=mountpoint/usr/lib/u-boot/sifive_fu540/u-boot.itb of=$loader2
+                dd if=mountpoint/usr/lib/u-boot/${u_boot_arch}/u-boot-spl.bin of=$loader1
+                dd if=mountpoint/usr/lib/u-boot/${u_boot_arch}/u-boot.itb of=$loader2
                 # Provide end-user modifyable CIDATA
                 cidata_dev="/dev/mapper${loop_device///dev/}p12"
                 setup_cidata "${cidata_dev}"
diff --git a/live-build/ubuntu-cpc/hooks.d/base/qcow2-image.binary b/live-build/ubuntu-cpc/hooks.d/base/qcow2-image.binary
index a4851e26..5b38fe69 100755
--- a/live-build/ubuntu-cpc/hooks.d/base/qcow2-image.binary
+++ b/live-build/ubuntu-cpc/hooks.d/base/qcow2-image.binary
@@ -7,7 +7,7 @@ case $ARCH:$SUBARCH in
 		xz -T4 -c binary/boot/disk.ext4 > livecd.ubuntu-cpc.disk1.img.xz
 	        exit 0
 		;;
-	riscv64:hifive)
+	riscv64:hifive|riscv64:sifive_*)
 		xz -T4 -c binary/boot/disk-uefi.ext4 > livecd.ubuntu-cpc.disk1.img.xz
 	        exit 0
 		;;


More information about the Neon-commits mailing list