support preseeding snaps in 16.04
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
livecd-rootfs (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
[Impact]
Customized images built for 16.04
[Test case]
1) Install livecd-rootfs
2) Take a copy of the code tree for livecd-rootfs.
3) Prepare a project/subproject tree for hooks:
$ mkdir -p live-build/
$ echo <<EOF > live-build/
#!/bin/sh
. config/functions
snap_preseed telegram
EOF
3) Build the image using livecd-rootfs:
$ PROJECT=xyz SUBPROJECT=snapped lb config
$ PROJECT=xyz SUBPROJECT=snapped lb build
4) Validate that the image contains the preseeded snap as intended.
[Regression potential]
Make sure any unexpected build behavior for images is investigated as a potential regression: the addition of config/functions (live-build/
---
18.04 builds can included preseeded snaps; but 16.04 can't.
Please backport the relevant functions of livecd-rootfs, so while (ubuntu seed)-based preseeding of snaps can't be done yet (changing seeds might otherwise change image contents), customized images can include their own snaps as necessary by calling the right functions in hook scripts.
Related branches
Changed in livecd-rootfs (Ubuntu Xenial): | |
status: | New → In Progress |
This already works in 18.04 (SRU is backport of that code).