mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-09 01:41:31 +00:00
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.
This commit is contained in:
parent
de9c5ed37e
commit
795927c48c
@ -307,12 +307,13 @@ fi
|
|||||||
if [ "$PROJECT" = "ubuntu-cpc" ] || [ "$PROJECT" = "ubuntu-server" ]; then
|
if [ "$PROJECT" = "ubuntu-cpc" ] || [ "$PROJECT" = "ubuntu-server" ]; then
|
||||||
cat >> chroot/usr/local/sbin/unminimize <<'EOF'
|
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..."
|
echo "Removing lxd installer package..."
|
||||||
apt-get purge -y lxd-installer
|
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
|
EOF
|
||||||
fi
|
fi
|
||||||
cat >> chroot/usr/local/sbin/unminimize <<'EOF'
|
cat >> chroot/usr/local/sbin/unminimize <<'EOF'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user