Browse Source

Adds genisoimage for cloud-init

Userdata is not able to be generated as a config drive
due to missing package in snap.

Change snap build to explicitly install LXD as confined
snap.

Change-Id: If03923a7a8223a9eec4e49bd612d39b231e788fb
Closes-Bug: 1884320
Signed-off-by: beierlm <mark.beierl@canonical.com>
changes/69/738869/4
beierlm 3 months ago
parent
commit
f0c0fdd245
2 changed files with 14 additions and 4 deletions
  1. +3
    -0
      snapcraft.yaml
  2. +11
    -4
      tools/lxd_build.sh

+ 3
- 0
snapcraft.yaml View File

@@ -572,6 +572,8 @@ parts:
- uca-sources
source: patches/
plugin: dump
build-packages:
- curl
override-build: |
# Create ${SNAPCRAFT_STAGE}/patches/upper-constraints

@@ -830,6 +832,7 @@ parts:
- dmidecode
- dnsmasq
- iptables
- genisoimage
- libxml2
- libyajl2
- try: [libnuma1]


+ 11
- 4
tools/lxd_build.sh View File

@@ -10,9 +10,16 @@ sudo apt install -y firefox-geckodriver python3-petname python3-selenium

# Setup snapd and snapcraft
sudo apt install -y snapd
sudo snap install --classic snapcraft
sudo snap install --classic lxd
sudo lxd init --auto

# Build our snap!
sudo snapcraft --use-lxd
sudo snap install --classic snapcraft
sudo snap install lxd

sudo usermod -a -G lxd ${USER}

# Since the current shell does not have the lxd group gid, use newgrp.
newgrp lxd << END
set -ex
lxd init --auto
snapcraft --use-lxd
END

Loading…
Cancel
Save