support preseeding snaps in 16.04

Bug #1771177 reported by Mathieu Trudel-Lapierre on 2018-05-14
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
livecd-rootfs (Ubuntu)
Undecided
Unassigned
Xenial
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/xyz/hooks/
$ echo <<EOF > live-build/xyz/hooks/000-snap-preseed.binary
#!/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/functions) in the build may lead to image builds failing, or could otherwise break the behavior of a part of the image build such that components of build images are missing. All images regularly built from livecd-rootfs should be tested to ensure they are equivalent to those previously built.

---

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.

This already works in 18.04 (SRU is backport of that code).

Changed in livecd-rootfs (Ubuntu):
status: New → Fix Released
Changed in livecd-rootfs (Ubuntu Xenial):
status: New → In Progress

Hello Mathieu, or anyone else affected,

Accepted livecd-rootfs into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/livecd-rootfs/2.408.31 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed.Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-needed-xenial to verification-done-xenial. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-xenial. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance!

Changed in livecd-rootfs (Ubuntu Xenial):
status: In Progress → Fix Committed
tags: added: verification-needed verification-needed-xenial
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers