Import patches-unapplied version 2.508 to ubuntu/bionic-proposed

Imported using git-ubuntu import.

Changelog parent: 300abafa6e

New changelog entries:
  * Use Ubuntu-specific branches when seeding snaps, as required in
    <https://wiki.ubuntu.com/UbuntuSeededSnaps>.
  * Add dependency on distro-info for the above.
impish
Steve Langasek 7 years ago committed by usd-importer
parent 300abafa6e
commit 54408aa506

8
debian/changelog vendored

@ -1,3 +1,11 @@
livecd-rootfs (2.508) bionic; urgency=medium
* Use Ubuntu-specific branches when seeding snaps, as required in
<https://wiki.ubuntu.com/UbuntuSeededSnaps>.
* Add dependency on distro-info for the above.
-- Steve Langasek <steve.langasek@ubuntu.com> Tue, 06 Mar 2018 10:15:43 +0100
livecd-rootfs (2.507) bionic; urgency=medium livecd-rootfs (2.507) bionic; urgency=medium
* ubuntu-server: generate multi-lowerdir overlayfs for * ubuntu-server: generate multi-lowerdir overlayfs for

1
debian/control vendored

@ -11,6 +11,7 @@ Architecture: any
Depends: ${misc:Depends}, Depends: ${misc:Depends},
apt-utils, apt-utils,
debootstrap, debootstrap,
distro-info,
dosfstools, dosfstools,
e2fsprogs, e2fsprogs,
gdisk, gdisk,

@ -35,6 +35,8 @@ Setup_cleanup
preinstall_snaps() { preinstall_snaps() {
lb chroot_resolv install lb chroot_resolv install
snap_channel="stable/ubuntu-$(distro-info --series="$LB_DISTRIBUTION" \
-r | awk '{ print $1 }')"
chroot chroot sh -c ' chroot chroot sh -c '
set -x; set -x;
cd /var/lib/snapd/seed; cd /var/lib/snapd/seed;
@ -43,7 +45,7 @@ preinstall_snaps() {
chroot chroot sh -c " chroot chroot sh -c "
set -x; set -x;
cd /var/lib/snapd/seed; cd /var/lib/snapd/seed;
SNAPPY_STORE_NO_CDN=1 snap download \"${snap%/*}\"" SNAPPY_STORE_NO_CDN=1 snap download --channel=$snap_channel \"${snap%/*}\""
done done
lb chroot_resolv remove lb chroot_resolv remove
@ -59,7 +61,7 @@ EOF
snap_name=${snap%/*} snap_name=${snap%/*}
cat <<EOF >> chroot/var/lib/snapd/seed/seed.yaml cat <<EOF >> chroot/var/lib/snapd/seed/seed.yaml
- name: ${snap_name} - name: ${snap_name}
channel: stable channel: $snap_channel
EOF EOF
case ${snap} in */classic) echo " classic: true" >> chroot/var/lib/snapd/seed/seed.yaml;; esac case ${snap} in */classic) echo " classic: true" >> chroot/var/lib/snapd/seed/seed.yaml;; esac
echo -n " file: " >> chroot/var/lib/snapd/seed/seed.yaml echo -n " file: " >> chroot/var/lib/snapd/seed/seed.yaml

Loading…
Cancel
Save