From 56042c4f59a5b89d2a297c29264bb76d8c45f9ca Mon Sep 17 00:00:00 2001 From: Utkarsh Gupta Date: Thu, 4 Jan 2024 15:21:10 +0530 Subject: [PATCH] unminimize: Use lxd-installer to install LXD itself (LP: 2036725) By invoking LXD, lxd-installer will install LXD from the right place, thereby make it simpler for us to not hardcode the channel and manually snap install it. --- live-build/auto/build | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/live-build/auto/build b/live-build/auto/build index a0cec10f..ad239083 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -307,12 +307,11 @@ fi if [ "$PROJECT" = "ubuntu-cpc" ] || [ "$PROJECT" = "ubuntu-server" ]; then cat >> chroot/usr/local/sbin/unminimize <<'EOF' +# installing LXD using the lxd-installer by invoking it +lxd --version echo "Removing lxd installer package..." apt-get purge -y lxd-installer -. /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'