[Merge] ~xnox/livecd-rootfs:snap-preseed-with-channel into livecd-rootfs:ubuntu/master
Dimitri John Ledkov
launchpad at surgut.co.uk
Wed Jun 3 19:49:09 UTC 2020
To test this, I did a subiquity build that tried to seed "subiquity/classic=latest/stable/ubuntu-20.04" which tries to exercise a custom track (latest) and legacy way to seed "/classic" snap.
It correctly parsed all of that, and ended up with SNAP_NAME subiquity and CHANNEL=latest/stable/ubuntu-20.04
which got passed to _snap_preseed, which did detect that it is a classic snap, and ended up generating correct seed.yaml with classic specification.
+ snap_preseed binary/boot/installer.squashfs.dir subiquity/classic=latest/stable/ubuntu-20.04
+ local CHROOT_ROOT=binary/boot/installer.squashfs.dir
+ local SNAP=subiquity/classic=latest/stable/ubuntu-20.04
+ local SNAP_NAME=subiquity/classic
+ SNAP_NAME=subiquity
+ local CHANNEL=
+ '[' -z '' ']'
+ case $2 in
+ CHANNEL=latest/stable/ubuntu-20.04
+ '[' '!' -e binary/boot/installer.squashfs.dir/var/lib/snapd/seed/assertions/model ']'
+ _snap_preseed binary/boot/installer.squashfs.dir subiquity latest/stable/ubuntu-20.04
+ local CHROOT_ROOT=binary/boot/installer.squashfs.dir
+ local SNAP_NAME=subiquity
+ local CHANNEL=latest/stable/ubuntu-20.04
+ grep -q 'confinement:.*classic'
+ echo ' classic: true'
--
https://code.launchpad.net/~xnox/livecd-rootfs/+git/livecd-rootfs/+merge/385064
Your team Ubuntu Core Development Team is requested to review the proposed merge of ~xnox/livecd-rootfs:snap-preseed-with-channel into livecd-rootfs:ubuntu/master.
More information about the Ubuntu-reviews
mailing list