[neon/neon/livecd-rootfs/Neon/release] /: Backport the qcow2 ubuntu-core image generation for LXD support.

Łukasz 'sil2100' Zemczak null at kde.org
Fri Jul 12 12:25:53 BST 2024


Git commit bb44f093c9e98c9fda41945e0b875ecf845488e4 by Łukasz 'sil2100' Zemczak.
Committed on 11/07/2024 at 11:16.
Pushed by carlosdem into branch 'Neon/release'.

Backport the qcow2 ubuntu-core image generation for LXD support.

M  +6    -0    debian/changelog
M  +5    -0    live-build/auto/build

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

diff --git a/debian/changelog b/debian/changelog
index eb1c2c53..a6e355ae 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+livecd-rootfs (24.04.73) UNRELEASED; urgency=medium
+
+  * Build qcow2 images for ubuntu-core LXD support (LP: #2072759).
+
+ -- Łukasz 'sil2100' Zemczak <lukasz.zemczak at ubuntu.com>  Thu, 11 Jul 2024 13:15:43 +0200
+
 livecd-rootfs (24.04.72) noble; urgency=medium
 
   [ Heinrich Schuchardt ]
diff --git a/live-build/auto/build b/live-build/auto/build
index 93184e7a..b09d8b1b 100755
--- a/live-build/auto/build
+++ b/live-build/auto/build
@@ -37,6 +37,11 @@ if [ "${IMAGEFORMAT:-}" = "ubuntu-image" ] \
 		#  we should be supporting more than one for models that
 		#  define those.
 		mv output/*.img "$PREFIX".img
+		# For standard, non-platform-specific core images, prepare a
+		# qcow2 image as well for LXD consumption.
+		if [ -z "${SUBARCH:-}" ]; then
+			convert_to_qcow2 "$PREFIX".img "$PREFIX".qcow2
+		fi
 		xz -0 -T4 "$PREFIX".img
 		mv output/seed.manifest "$PREFIX".manifest
 



More information about the Neon-commits mailing list