snap preseeding in xenial not working
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 with preseeded snaps fail.
[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/binary
. config/
snap_preseed chroot telegram
EOF
3) Build the image using livecd-rootfs:
$ PROJECT=ubuntu-cpc SUBPROJECT=snapped lb config
$ PROJECT=ubuntu-cpc SUBPROJECT=snapped lb build
4) Validate that the image contains the preseeded snap as intended from stable/ubuntu-16.04 channel.
[Regression potential]
---
Snap preseeding released in 2.408.31 (bug #1771177) is incomplete.
* Preseeding without specifying a channel will result in a build-break as distro-info is not installed in the build environment
* Building with the ubuntu-cpc project overwrites the 'functions' file that added snap functions
description: | updated |
Changed in livecd-rootfs (Ubuntu): | |
status: | New → Fix Released |
Hello Robert, 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.32 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/ PerformingSRUVe rification . Thank you in advance!