From 12a2109c223e261214747d5f98d4b8d7ee9625e3 Mon Sep 17 00:00:00 2001 From: Utkarsh Gupta Date: Thu, 21 Sep 2023 13:34:07 +0530 Subject: [PATCH] fix: install LXD snap from stable/ubuntu- 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- channel instead. This was also noted as a failure when running the CTF tests: `lxd installed from latest/stable, not stable/ubuntu-23.10` --- live-build/auto/build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/live-build/auto/build b/live-build/auto/build index 08b42a24..bcae184d 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -317,8 +317,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'