Public bug reported:
[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.
** Affects: livecd-rootfs (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1771177
Title:
support preseeding snaps in 16.04
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1771177/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs