[neon/neon/livecd-rootfs/Neon/release] live-build/auto: unminimize: Use lxd-installer to install LXD itself (LP: 2036725)
Utkarsh Gupta
null at kde.org
Mon Jan 22 10:51:41 GMT 2024
Git commit 1a05e8298ae1bd8a0818eca284064ebccc5af533 by Utkarsh Gupta.
Committed on 11/01/2024 at 12:20.
Pushed by carlosdem into branch 'Neon/release'.
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.
(cherry picked from commit 795927c48cf2e763e8f222e8c27c63e71d966a5f)
M +4 -3 live-build/auto/build
https://invent.kde.org/neon/neon/livecd-rootfs/-/commit/1a05e8298ae1bd8a0818eca284064ebccc5af533
diff --git a/live-build/auto/build b/live-build/auto/build
index 8b8a9dd4..d1b8818d 100755
--- a/live-build/auto/build
+++ b/live-build/auto/build
@@ -285,12 +285,13 @@ fi
if [ "$PROJECT" = "ubuntu-cpc" ] || [ "$PROJECT" = "ubuntu-server" ]; then
cat >> chroot/usr/local/sbin/unminimize <<'EOF'
+# installing LXD using the lxd-installer by simply invoking it
+echo "Invoking LXD so that it can be installed by the lxd-installer's script.."
+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'
More information about the Neon-commits
mailing list