snap preseeding in xenial not working

Bug #1775710 reported by Robert C Jennings on 2018-06-07
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 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/xyz/hooks/
$ echo <<EOF > live-build/ubuntu-cpc/hooks/000-snap-preseed.binary
#!/bin/sh

. config/binary
. config/functions.snaps

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

Related branches

Robert C Jennings (rcj) on 2018-06-07
description: updated

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/PerformingSRUVerification . Thank you in advance!

Changed in livecd-rootfs (Ubuntu Xenial):
status: New → Fix Committed
tags: added: verification-needed verification-needed-xenial
Robert C Jennings (rcj) wrote :

We've an undefined $VERSION in config/binary which is resolved by https://code.launchpad.net/~rcj/livecd-rootfs/xenial-proposed/+merge/347703 (which also brings the zero'ing of the UEFI partition from the same release)

tags: added: verification-failed verification-failed-xenial
removed: verification-needed verification-needed-xenial
Steve Langasek (vorlon) wrote :

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.33 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!

tags: added: verification-needed-xenial
removed: verification-failed verification-failed-xenial
Robert C Jennings (rcj) wrote :

I have tested with an image from the ubuntu-cpc project and it looks good.

Setting verification-done -- validation of the livecd-rootfs changes was done with 2.408.33 as per the previous comment.

tags: added: verification-done-xenial
removed: verification-needed-xenial
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package livecd-rootfs - 2.408.33

---------------
livecd-rootfs (2.408.33) xenial; urgency=medium

  * Zero fill space in UEFI partitions, too
  * Set LB_ISO_PREPARER to livecd-rootfs to avoid unbound variable in default string

 -- Robert C Jennings <email address hidden> Fri, 08 Jun 2018 09:12:03 -0700

Changed in livecd-rootfs (Ubuntu Xenial):
status: Fix Committed → Fix Released
Robert C Jennings (rcj) on 2018-06-21
Changed in livecd-rootfs (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers