From b6135788ba51e6881fa9b306c58ea983e9e03c8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20=27sil2100=27=20Zemczak?= Date: Fri, 5 Jul 2024 11:36:42 +0200 Subject: [PATCH] Build qcow2 images for non-SUBARCH core images for lxd purposes. --- live-build/auto/build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/live-build/auto/build b/live-build/auto/build index 0469747d..8862b3ee 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