[neon/neon/livecd-rootfs/Neon/release] live-build/auto: fix: install LXD snap from stable/ubuntu-<version> channel (LP: #2036725)

Utkarsh Gupta null at kde.org
Mon Jan 22 10:51:41 GMT 2024


Git commit 4ba66ac0d1a648e2c1a84da7545ca66edc1ff002 by Utkarsh Gupta.
Committed on 04/10/2023 at 10:18.
Pushed by carlosdem into branch 'Neon/release'.

fix: install LXD snap from stable/ubuntu-<version> channel (LP: #2036725)

In the past, we'd directly snap install lxd which defaults to
the latest/stable channel. However, whilst working on enhancing
unminimize, it was observed that we install this snap from
the stable/ubuntu-<version> channel instead.

This was also noted as a failure when running the CTF tests:
`lxd installed from latest/stable, not stable/ubuntu-23.10`

(cherry picked from commit 12a2109c223e261214747d5f98d4b8d7ee9625e3)

M  +3    -2    live-build/auto/build

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

diff --git a/live-build/auto/build b/live-build/auto/build
index 8dd8c7d0..8b8a9dd4 100755
--- a/live-build/auto/build
+++ b/live-build/auto/build
@@ -288,8 +288,9 @@ fi
 echo "Removing lxd installer package..."
 apt-get purge -y lxd-installer
 
-echo "Installing lxd from snap..."
-snap install lxd
+. /etc/os-release
+echo "Installing lxd from snap from stable/ubuntu-$VERSION_ID channel"
+snap install --channel="stable/ubuntu-$VERSION_ID" lxd
 EOF
 		fi
 		cat >> chroot/usr/local/sbin/unminimize <<'EOF'



More information about the Neon-commits mailing list