From 2848624193ee7c9fc50f098382c6f58e64a94231 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Wed, 8 Jun 2016 12:59:38 -0700 Subject: [PATCH] Import patches-unapplied version 2.415 to ubuntu/yakkety-proposed Imported using git-ubuntu import. Changelog parent: ec4b3544697f7592f153fac7967663acf37ce0cb New changelog entries: [ Michael Vogt ] * add var/lib/snapd/classic in ubuntu-core [ Daniel Watkins ] * Don't overwrite the default sources.list in cloud images. * Replace sources.list generated using COMPONENTS with the sources.list from an Ubuntu Server installation (i.e. with all components enabled, and all deb-src lines commented). --- debian/changelog | 13 ++ live-build/auto/build | 139 +++++-------------- live-build/ubuntu-core/hooks/700-classic-dir | 13 ++ 3 files changed, 61 insertions(+), 104 deletions(-) create mode 100644 live-build/ubuntu-core/hooks/700-classic-dir diff --git a/debian/changelog b/debian/changelog index f3b09b8f..05956f7e 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,16 @@ +livecd-rootfs (2.415) yakkety; urgency=medium + + [ Michael Vogt ] + * add var/lib/snapd/classic in ubuntu-core + + [ Daniel Watkins ] + * Don't overwrite the default sources.list in cloud images. + * Replace sources.list generated using COMPONENTS with the sources.list from + an Ubuntu Server installation (i.e. with all components enabled, and all + deb-src lines commented). + + -- Steve Langasek Wed, 08 Jun 2016 12:59:38 -0700 + livecd-rootfs (2.414) yakkety; urgency=medium * Update post-debootstrap hashes for ubuntu-touch. diff --git a/live-build/auto/build b/live-build/auto/build index ae157bd5..5bc6a67c 100755 --- a/live-build/auto/build +++ b/live-build/auto/build @@ -58,116 +58,56 @@ EOF # preinstalled being slightly different in what it doesn't ask) from # debian-installer's apt-setup: -codename=$LB_DISTRIBUTION -file="chroot/etc/apt/sources.list" -dists="main" -alldists="main" -if echo "$LB_PARENT_ARCHIVE_AREAS" | grep -q restricted; then - dists="$dists restricted" - alldists="$alldists restricted" -fi -if echo "$LB_PARENT_ARCHIVE_AREAS" | grep -q universe; then - UNIVERSE=true -else - UNIVERSE=false -fi -if echo "$LB_PARENT_ARCHIVE_AREAS" | grep -q multiverse; then - MULTIVERSE=true -else - MULTIVERSE=false -fi - -cat > $file < chroot/etc/apt/sources.list << EOF # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. - -deb $LB_PARENT_MIRROR_BINARY $codename $dists -deb-src $LB_PARENT_MIRROR_BINARY $codename $dists +deb $LB_PARENT_MIRROR_BINARY $LB_DISTRIBUTION main restricted +# deb-src $LB_PARENT_MIRROR_BINARY $LB_DISTRIBUTION main restricted ## Major bug fix updates produced after the final release of the ## distribution. -deb $LB_PARENT_MIRROR_BINARY $codename-updates $dists -deb-src $LB_PARENT_MIRROR_BINARY $codename-updates $dists -EOF +deb $LB_PARENT_MIRROR_BINARY $LB_DISTRIBUTION-updates main restricted +# deb-src $LB_PARENT_MIRROR_BINARY $LB_DISTRIBUTION-updates main restricted -# Even if universe isn't enabled, we write example lines for it. -echo >> $file -if [ "$UNIVERSE" = true ]; then - alldists="$alldists universe" - COMMENT= -else - cat >> $file <> $file <> $file <> $file <> $file <> $file <> $file < chroot/etc/apt/sources.list << EOF -deb ${LB_PARENT_MIRROR_BINARY} ${LB_DISTRIBUTION} main restricted universe multiverse -deb ${LB_PARENT_MIRROR_BINARY} ${LB_DISTRIBUTION}-updates main restricted universe multiverse -deb ${LB_PARENT_MIRROR_BINARY_SECURITY} ${LB_DISTRIBUTION}-security main restricted universe multiverse -EOF - lb chroot_hosts install - lb chroot_resolv install - Chroot chroot "apt-get update" - lb chroot_resolv remove - lb chroot_hosts remove fi echo "===== Checking size of /usr/share/doc =====" @@ -329,8 +259,9 @@ if [ "$PROJECT:$SUBPROJECT" = "ubuntu-core:system-image" ]; then VERSION="$(lsb_release -r -s)+$(date +20%y%m%d.%H-%M)" + CORENAME="ubuntu-core" cat > $rootfs/meta/snap.yaml <