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>
This commit is contained in:
parent
f61cbbf72f
commit
f0c0fdd245
|
@ -572,6 +572,8 @@ parts:
|
||||||
- uca-sources
|
- uca-sources
|
||||||
source: patches/
|
source: patches/
|
||||||
plugin: dump
|
plugin: dump
|
||||||
|
build-packages:
|
||||||
|
- curl
|
||||||
override-build: |
|
override-build: |
|
||||||
# Create ${SNAPCRAFT_STAGE}/patches/upper-constraints
|
# Create ${SNAPCRAFT_STAGE}/patches/upper-constraints
|
||||||
|
|
||||||
|
@ -830,6 +832,7 @@ parts:
|
||||||
- dmidecode
|
- dmidecode
|
||||||
- dnsmasq
|
- dnsmasq
|
||||||
- iptables
|
- iptables
|
||||||
|
- genisoimage
|
||||||
- libxml2
|
- libxml2
|
||||||
- libyajl2
|
- libyajl2
|
||||||
- try: [libnuma1]
|
- try: [libnuma1]
|
||||||
|
|
|
@ -10,9 +10,16 @@ sudo apt install -y firefox-geckodriver python3-petname python3-selenium
|
||||||
|
|
||||||
# Setup snapd and snapcraft
|
# Setup snapd and snapcraft
|
||||||
sudo apt install -y snapd
|
sudo apt install -y snapd
|
||||||
sudo snap install --classic snapcraft
|
|
||||||
sudo snap install --classic lxd
|
|
||||||
sudo lxd init --auto
|
|
||||||
|
|
||||||
# Build our snap!
|
# 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…
Reference in New Issue