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:
		@@ -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]
 | 
			
		||||
 
 | 
			
		||||
@@ -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
 | 
			
		||||
		Reference in New Issue
	
	Block a user