autoinstall is not executing postruncmd commands in user-data section
Bug #1982773 reported by
Jeff Hillman
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
subiquity |
New
|
Undecided
|
Unassigned |
Bug Description
Subiquity in Jammy 22.04.1 daily builds
autoinstall is not executing nor logging anything in a postruncmd section of user-data.
It does, however, respect both packages and write_files.
Nothing is logged in /var/log/
Expected behavior would be for postruncmd to execute after write_files and package, however nothing is happening.
runcmd however, is executing.
To post a comment you must log in.
attaching server debug log and here's the current entirety of user-data:
```
PATH= "/usr/local/ sbin:/usr/ local/bin: /usr/sbin: /usr/bin: /sbin:/ bin:/usr/ games:/ usr/local/ games"
LC_ALL= "en_US. UTF-8"
LANG= "en_US. UTF-8"
LANGUAGE= "en_US: en"
EDITOR= "vim"
permissions: "0644"
core. https_address: '[::]:8443'
core. trust_password: P@ssw0rd!
storage_ pools:
source: local
volatile. initial_ source: /dev/vdb
zfs.pool_ name: local
descriptio n: "Local ZFS pool on /dev/sdb"
descriptio n: Default LXD profile
devices:
name: eth0
nictype: bridged
parent: br0
type: nic
path: /
pool: local
type: disk
features. images: "true"
features. networks: "true"
features. profiles: "true"
features. storage. volumes: "true"
descriptio n: Default LXD project
permissions: "0640"
user-data:
write_files:
- content: |
owner: "root:root"
path: /etc/environment
- content: |
config:
networks: []
- config:
name: local
driver: zfs
profiles:
- config: {}
eth0:
root:
name: default
projects:
- config:
name: default
owner: "root:root"
path: /root/lxd-config
packages:
- net-tools
- bridge-utils
# - zfsutils-linux
postruncmd:
- echo hello > /root/test1
- zpool destroy local
- sleep 10
- apt install zfsutils-linux -y
- zpool create -f -m none -O compression=on local /dev/vdb
- cat /root/lxd-config | lxd init --preseed
```