Comment 2 for bug 1866159

Revision history for this message
Robert C Jennings (rcj) wrote :

This has been verified using 2.408.58 in xenial-proposed.

I have built the qcow2 image target of the ubuntu-cpc project with and without a cohort key.

I added the following to the qcow2 binary hook:
 . /build/config/binary
 mkdir qcowmp
 mount_disk_image binary/boot/disk-uefi.ext4 qcowmp
 snap_preseed qcowmp/ lxd
 umount_disk_image qcowmp
 rmdir qcowmp

Booting the resulting livecd.ubuntu-cpc.uefi1.img which came out of the builds with/without the snap cohort key shows that both boot and 'systemctl is-system-running' gets to 'running' (no failed units). The output of 'snap list' shows lxd and core as expected and 'snap info --verbose' run against each of the snaps in either image confirms that the cohort key did not persist into the resulting image as expected.

Based on this testing I will mark the bug as verification-done.