[Bug 1775710] Re: snap preseeding in xenial not working

Robert C Jennings 1775710 at bugs.launchpad.net
Thu Jun 7 21:58:43 UTC 2018


** Description changed:

+ [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

** Branch linked: lp:~rcj/livecd-rootfs/xenial-proposed

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/1775710

Title:
  snap preseeding in xenial not working

Status in livecd-rootfs package in Ubuntu:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1775710/+subscriptions



More information about the foundations-bugs mailing list