mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-04-12 03:31:16 +00:00
Imported 2.670
No reason for CPC update specified.
This commit is contained in:
parent
6c332e6f04
commit
baca55b13a
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
livecd-rootfs (2.670) groovy; urgency=medium
|
||||
|
||||
* snap_preseed: support channel specification with snap name (LP: #1882374)
|
||||
|
||||
-- Dimitri John Ledkov <xnox@ubuntu.com> Thu, 09 Jul 2020 18:34:43 +0100
|
||||
|
||||
livecd-rootfs (2.669) groovy; urgency=medium
|
||||
|
||||
* chroot: disable amd64 codepath on riscv64
|
||||
|
@ -631,11 +631,26 @@ snap_prepare() {
|
||||
snap_preseed() {
|
||||
# Preseed a snap in the image (snap_prepare must be called once prior)
|
||||
local CHROOT_ROOT=$1
|
||||
# $2 can be in the form of snap_name/classic=track/risk/branch
|
||||
local SNAP=$2
|
||||
local SNAP_NAME=${SNAP%/*}
|
||||
# Per Ubuntu policy, all seeded snaps (with the exception of the core
|
||||
# snap) must pull from stable/ubuntu-$(release_ver) as their channel.
|
||||
local CHANNEL=${3:-"stable/ubuntu-$(release_ver)"}
|
||||
# strip CHANNEL specification
|
||||
local SNAP_NAME=${SNAP%=*}
|
||||
# strip /classic confinement
|
||||
SNAP_NAME=${SNAP_NAME%/*}
|
||||
# Seed from the specified channel (e.g. core18 latest/stable)
|
||||
# Or Channel endcoded in the snap name (e.g. lxd=4.0/stable/ubuntu-20.04)
|
||||
# Or Ubuntu policy default channel latest/stable/ubuntu-$(release_ver)
|
||||
local CHANNEL=$3
|
||||
if [ -z "$CHANNEL" ]; then
|
||||
case $2 in
|
||||
*=*)
|
||||
CHANNEL=${2#*=}
|
||||
;;
|
||||
*)
|
||||
CHANNEL="stable/ubuntu-$(release_ver)"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ ! -e "$CHROOT_ROOT/var/lib/snapd/seed/assertions/model" ]; then
|
||||
echo "ERROR: Snap model assertion not present, snap_prepare must be called"
|
||||
|
Loading…
x
Reference in New Issue
Block a user