Compare commits

...

30 Commits

Author SHA1 Message Date
Adam Conrad
b47a6a73c2 * Add xserver-xorg-core-lts-vivid to X HWE hints for the resolver.
* Add libwayland-egl1-mesa-lts-vivid to X HWE hints (LP: #1479524)
* Add kde-window-manager to kubuntu hints to fix a resolver issue.
* Add thermald to lubuntu hints to work around lack of recommends.
2015-07-30 07:05:38 -06:00
Adam Conrad
06fd13d6a2 * live-build/auto/config: Switch HWE from lts-utopic to lts-vivid.
* Remove obsolete libegl1-mesa-drivers-lts-* from HWE_X_PACKAGES.
2015-06-22 18:32:04 -06:00
Adam Conrad
91df73cd18 Add audacious-plugins to LUBUNTU_HWE_HINTS to unsnag the PPC build. 2015-02-18 12:54:24 -07:00
Adam Conrad
0c09cb18b9 Release 2.208.5 2015-02-17 16:23:58 -07:00
Adam Conrad
35d37567e1 Remove xscreensaver-data and xscreensaver with XUBUNTU_HWE_HINTS. 2015-02-17 14:53:49 -07:00
Adam Conrad
912a490c96 * Rename XUBUNTU_HWE_HINTS to XFCE_HWE_HINTS, so it's more reusable
and have MYTHBUNTU, XUBUNTU, and UBUNTUSTUDIO all make use of it.
* Explicitly seed the correct notify option for every last flavour.
2015-02-17 14:14:44 -07:00
Adam Conrad
e100f3a610 Explicitly install the xserver-xorg-input-all-lts-utopic package 2015-02-17 13:58:35 -07:00
Adam Conrad
ca3279cc45 Release 2.208.4 2015-02-17 12:09:46 -07:00
Adam Conrad
763dda686f Add gnome-terminal to UNITY_HWE_HINTS for universe flavours that get xvt by accident 2015-02-17 07:43:26 -07:00
Adam Conrad
31fea13a91 Also reuse XUBUNTU_HWE_HINTS for UBUNTUSTUDIO_HWE_HINTS with tweaks 2015-02-17 07:27:36 -07:00
Adam Conrad
b283e3f938 Reuse XUBUNTU_HWE_HINTS for MYTHBUNTU_HWE_HINTS and add some tweaks 2015-02-17 07:00:39 -07:00
Adam Conrad
540536a920 * Add UBUNTUGNOME_HWE_HINTS and populate it skip using unity packages
* Add LUBUNTU_HWE_HINTS and populate to work around task->meta change
2015-02-17 06:32:53 -07:00
Adam Conrad
efe0af3b68 Revert lubuntu to using tasks for minimal and standard, since their
unique snowflake apt --no-install-recommends setup breaks switching
2015-02-14 01:43:58 -07:00
Adam Conrad
1b70734c2f Add XUBUNTU_HWE_HINTS and populate to work around task->meta change 2015-02-14 01:06:32 -07:00
Adam Conrad
97273b7c56 One more hint to get webkit and zenity off the kubuntu image 2015-02-14 00:30:39 -07:00
Adam Conrad
d5e4b69cdb * Use the correct metapackage for edubuntu-desktop, and add HWE_HINTS
* Add KUBUNTU_HWE_HINTS and populate to work around task->meta change
2015-02-14 00:08:24 -07:00
Adam Conrad
93012bbfc6 Hint pinentry-qt4 for kubuntu-desktop to avoid GNOME deps. 2015-02-04 04:44:36 -07:00
Adam Conrad
6faa717bf7 Use the correct metapackage for edubuntu-desktop 2015-02-04 04:43:37 -07:00
Adam Conrad
7b9f251999 Pull xserver-xorg-video-geode-lts-utopic out of the i386 images. 2015-02-03 07:04:58 -07:00
Adam Conrad
0fbb4d5a11 Release 2.208.2 2015-02-03 01:45:49 -07:00
Adam Conrad
6770013ca3 Add unity to the UNITY_HWE hints 2015-02-03 00:13:38 -07:00
Adam Conrad
3670bc958b Define UNITY_HWE_HINTS to hint correct alternative package selections. 2015-02-02 08:26:50 -07:00
Adam Conrad
638fa1b0b9 Yet another lts-foo FLAVOUR cut 2015-02-02 06:21:03 -07:00
Adam Conrad
90df19ceae Before trying to copy kernels around, cut -lts* off the end of FLAVOUR,
since the actual files on disk are -generic, not -generic-lts-utopic.
2015-02-02 05:40:00 -07:00
Adam Conrad
3528438c85 * Abstract the signed kernel image, so it's only defined in one spot.
* Define HWE_X_PACKAGES required to install lts-utopic and use it.
2015-02-02 02:43:19 -07:00
Adam Conrad
2c6347c6f1 Move from task-based installs to package-based installs, and switch
to using the lts-utopic HWE kernel and X stack for all flavours.
2015-02-02 01:44:19 -07:00
Colin Watson
1bbd4778e0 If EXTRA_PPAS is set in the environment (as a space-separated sequence
of <ppa-owner>/<ppa-name> pairs), fetch signing keys for those from
Launchpad using python3-software-properties, and add those PPAs when
building the live filesystem.  This makes it easier for a builder to
build an image against an additional PPA (LP: #1334374).
2014-06-26 12:43:29 +01:00
Colin Watson
a546c6d7a6 releasing package livecd-rootfs version 2.208.1 2014-06-24 14:53:40 +01:00
Colin Watson
4fc5871ffe Filter out kernel packages that mistakenly ended up in live tasks, so
that we can install updated versions separately (LP: #1325281).
2014-06-24 14:50:42 +01:00
Colin Watson
63113028d9 Install linux-signed-generic directly in live passes rather than relying
on it being in the corresponding tasks.  linux-signed-generic shouldn't
be in a task because that expands to ABI-versioned packages, and tasks
can't be updated post-release.
2014-06-24 09:34:12 +01:00
6 changed files with 234 additions and 24 deletions

83
debian/changelog vendored
View File

@ -1,3 +1,86 @@
livecd-rootfs (2.208.8) trusty; urgency=medium
* Add xserver-xorg-core-lts-vivid to X HWE hints for the resolver.
* Add libwayland-egl1-mesa-lts-vivid to X HWE hints (LP: #1479524)
* Add kde-window-manager to kubuntu hints to fix a resolver issue.
* Add thermald to lubuntu hints to work around lack of recommends.
-- Adam Conrad <adconrad@ubuntu.com> Tue, 28 Jul 2015 20:06:52 -0600
livecd-rootfs (2.208.7) trusty; urgency=medium
* live-build/auto/config: Switch HWE from lts-utopic to lts-vivid.
* Remove obsolete libegl1-mesa-drivers-lts-* from HWE_X_PACKAGES.
-- Adam Conrad <adconrad@ubuntu.com> Mon, 22 Jun 2015 14:07:52 -0600
livecd-rootfs (2.208.6) trusty; urgency=medium
* Add audacious-plugins to LUBUNTU_HWE_HINTS to unsnag the PPC build.
-- Adam Conrad <adconrad@ubuntu.com> Wed, 18 Feb 2015 12:00:36 -0700
livecd-rootfs (2.208.5) trusty; urgency=medium
* Explicitly install the xserver-xorg-input-all-lts-utopic package.
* Rename XUBUNTU_HWE_HINTS to XFCE_HWE_HINTS, so it's more reusable
and have MYTHBUNTU, XUBUNTU, and UBUNTUSTUDIO all make use of it.
* Explicitly seed the correct notify option for every last flavour.
* Remove xscreensaver-data and xscreensaver with XUBUNTU_HWE_HINTS.
-- Adam Conrad <adconrad@ubuntu.com> Tue, 17 Feb 2015 13:57:51 -0700
livecd-rootfs (2.208.4) trusty; urgency=medium
* Use the correct metapackage for edubuntu-desktop, and add HWE_HINTS
* Add KUBUNTU_HWE_HINTS and populate to work around task->meta change
* Revert lubuntu to using tasks for minimal and standard, since their
unique snowflake apt --no-install-recommends setup breaks switching
* Add XUBUNTU_HWE_HINTS and populate to work around task->meta change
* Add UBUNTUGNOME_HWE_HINTS and populate it skip using unity packages
* Add LUBUNTU_HWE_HINTS and populate to work around task->meta change
* Reuse XUBUNTU_HWE_HINTS for MYTHBUNTU_HWE_HINTS and add some tweaks
* Also reuse XUBUNTU_HWE_HINTS for UBUNTUSTUDIO_HWE_HINTS with tweaks
-- Adam Conrad <adconrad@ubuntu.com> Wed, 04 Feb 2015 04:42:54 -0700
livecd-rootfs (2.208.3) trusty; urgency=medium
* Pull xserver-xorg-video-geode-lts-utopic out of the i386 images.
-- Adam Conrad <adconrad@ubuntu.com> Tue, 03 Feb 2015 07:03:03 -0700
livecd-rootfs (2.208.2) trusty; urgency=medium
[ Colin Watson ]
* If EXTRA_PPAS is set in the environment (as a space-separated sequence
of <ppa-owner>/<ppa-name> pairs), fetch signing keys for those from
Launchpad using python3-software-properties, and add those PPAs when
building the live filesystem. This makes it easier for a builder to
build an image against an additional PPA (LP: #1334374).
[ Adam Conrad ]
* Move from task-based installs to package-based installs, and switch
to using the lts-utopic HWE kernel and X stack for all flavours.
* Abstract the signed kernel image, so it's only defined in one spot.
* Before trying to copy kernels around, cut -lts* off the end of FLAVOUR,
since the actual files on disk are -generic, not -generic-lts-utopic.
* Define HWE_X_PACKAGES required to install lts-utopic and use it.
* Define UNITY_HWE_HINTS to hint correct alternative package selections.
-- Adam Conrad <adconrad@ubuntu.com> Mon, 02 Feb 2015 01:43:48 -0700
livecd-rootfs (2.208.1) trusty; urgency=medium
* Install linux-signed-generic directly in live passes rather than relying
on it being in the corresponding tasks. linux-signed-generic shouldn't
be in a task because that expands to ABI-versioned packages, and tasks
can't be updated post-release.
* Filter out kernel packages that mistakenly ended up in live tasks, so
that we can install updated versions separately (LP: #1325281).
-- Colin Watson <cjwatson@ubuntu.com> Tue, 24 Jun 2014 14:51:03 +0100
livecd-rootfs (2.208) trusty; urgency=medium livecd-rootfs (2.208) trusty; urgency=medium
* Adding support for ubuntu-touch i386 based images * Adding support for ubuntu-touch i386 based images

2
debian/control vendored
View File

@ -8,7 +8,7 @@ Vcs-Bzr: http://bazaar.launchpad.net/~ubuntu-core-dev/livecd-rootfs/trunk
Package: livecd-rootfs Package: livecd-rootfs
Architecture: any Architecture: any
Depends: ${misc:Depends}, debootstrap, rsync, python-minimal | python, procps, squashfs-tools (>= 1:3.3-1), grep-dctrl, fdupes, lsb-release, lzma, e2fsprogs, germinate (>= 1.25.1), apt-utils, gnupg, live-build (>= 3.0~a55-1), android-tools-fsutils [armhf] Depends: ${misc:Depends}, debootstrap, rsync, python-minimal | python, procps, squashfs-tools (>= 1:3.3-1), grep-dctrl, fdupes, lsb-release, lzma, e2fsprogs, germinate (>= 1.25.1), apt-utils, gnupg, live-build (>= 3.0~a55-1), android-tools-fsutils [armhf], python3-software-properties
Suggests: partimage Suggests: partimage
Breaks: ubuntu-defaults-builder (<< 0.32) Breaks: ubuntu-defaults-builder (<< 0.32)
Description: construction script for the livecd rootfs Description: construction script for the livecd rootfs

1
debian/install vendored
View File

@ -1 +1,2 @@
live-build usr/share/livecd-rootfs live-build usr/share/livecd-rootfs
get-ppa-fingerprint usr/share/livecd-rootfs

16
get-ppa-fingerprint Executable file
View File

@ -0,0 +1,16 @@
#! /usr/bin/python3
from __future__ import print_function
from optparse import OptionParser
from softwareproperties import ppa
parser = OptionParser(usage="%prog OWNER/NAME")
_, args = parser.parse_args()
if not args:
parser.error("must provide a PPA owner/name")
owner_name, ppa_name = args[0].split("/")
ppa_info = ppa.get_ppa_info_from_lp(owner_name, ppa_name)
print(ppa_info["signing_key_fingerprint"])

View File

@ -328,6 +328,7 @@ for FLAVOUR in $LB_LINUX_FLAVOURS; do
if [ -z "$LB_LINUX_FLAVOURS" ] || [ "$LB_LINUX_FLAVOURS" = "none" ]; then if [ -z "$LB_LINUX_FLAVOURS" ] || [ "$LB_LINUX_FLAVOURS" = "none" ]; then
continue continue
fi fi
FLAVOUR=${FLAVOUR%%-lts-*}
KVERS="$( (cd "binary/$INITFS"; ls vmlinu?-* 2>/dev/null || true) | (fgrep -v .efi || true) | sed -n "s/^vmlinu.-\\([^-]*-[^-]*-$FLAVOUR\\)$/\\1/p" )" KVERS="$( (cd "binary/$INITFS"; ls vmlinu?-* 2>/dev/null || true) | (fgrep -v .efi || true) | sed -n "s/^vmlinu.-\\([^-]*-[^-]*-$FLAVOUR\\)$/\\1/p" )"
if [ -z "$KVERS" ]; then if [ -z "$KVERS" ]; then
if [ -e "binary/$INITFS/vmlinuz" ]; then if [ -e "binary/$INITFS/vmlinuz" ]; then
@ -357,6 +358,7 @@ done
NUMFLAVOURS="$(set -- $LB_LINUX_FLAVOURS; echo $#)" NUMFLAVOURS="$(set -- $LB_LINUX_FLAVOURS; echo $#)"
if [ "$NUMFLAVOURS" = 1 ] && [ "$LB_LINUX_FLAVOURS" != "none" ]; then if [ "$NUMFLAVOURS" = 1 ] && [ "$LB_LINUX_FLAVOURS" != "none" ]; then
# only one kernel flavour # only one kernel flavour
FLAVOUR=${LB_LINUX_FLAVOURS%%-lts-*}
if [ -e "binary/$INITFS/vmlinuz" ]; then if [ -e "binary/$INITFS/vmlinuz" ]; then
ln "binary/$INITFS/vmlinuz" "$PREFIX.kernel" ln "binary/$INITFS/vmlinuz" "$PREFIX.kernel"
else else

View File

@ -39,8 +39,17 @@ add_task ()
{ {
local pass="$1" local pass="$1"
shift shift
local filter=
local task local task
if [ "$1" = --filter ]; then
# Add an extra layer of backslash-quoting to anything that's
# already backslash-quoted, since it will need to pass
# through eval.
filter="$(printf %s "$2" | sed 's/\(\\.\)/\\\\\1/g')"
shift 2
fi
# The removal of direct task installation support from live-build # The removal of direct task installation support from live-build
# poses some problems. If the chroot has multiarch configured - for # poses some problems. If the chroot has multiarch configured - for
# example, if we're building for amd64 - then dumpavail will show # example, if we're building for amd64 - then dumpavail will show
@ -60,7 +69,7 @@ add_task ()
for task; do for task; do
# We need a ridiculous number of backslashes to protect # We need a ridiculous number of backslashes to protect
# parentheses from eval. # parentheses from eval.
echo "!chroot chroot apt-cache dumpavail | grep-dctrl -nsPackage \\\\\\( -XFArchitecture $ARCH -o -XFArchitecture all \\\\\\) -a -wFTask $task" >> "config/package-lists/livecd-rootfs.list.chroot_$pass" echo "!chroot chroot apt-cache dumpavail | grep-dctrl -nsPackage \\\\\\( -XFArchitecture $ARCH -o -XFArchitecture all \\\\\\) -a -wFTask $task${filter:+ -a $filter}" >> "config/package-lists/livecd-rootfs.list.chroot_$pass"
done done
} }
@ -84,6 +93,7 @@ SOURCE='--source false'
BOOTLOADER=none BOOTLOADER=none
BOOTAPPEND_LIVE= BOOTAPPEND_LIVE=
LIVE_TASK= LIVE_TASK=
LIVE_TASK_FILTER=
PREINSTALLED=false PREINSTALLED=false
PREINSTALL_POOL= PREINSTALL_POOL=
PREINSTALL_POOL_SEEDS= PREINSTALL_POOL_SEEDS=
@ -172,9 +182,31 @@ case $BINARYFORMAT in
;; ;;
esac esac
# Default to lts-vivid for the point release, this is overridden later by
# specific projects/flavours:
case $ARCH in
powerpc)
KERNEL_FLAVOURS="powerpc-smp-lts-vivid powerpc64-smp-lts-vivid"
;;
*)
KERNEL_FLAVOURS="generic-lts-vivid"
;;
esac
HWE_X_PACKAGES="xserver-xorg-core-lts-vivid xserver-xorg-lts-vivid xserver-xorg-video-all-lts-vivid xserver-xorg-input-all-lts-vivid libwayland-egl1-mesa-lts-vivid"
SIGNED_KERNEL_PACKAGE="linux-signed-generic-lts-vivid"
UNITY_HWE_HINTS="unity-settings-daemon notify-osd libqt4-sql-sqlite unity gnome-terminal"
KUBUNTU_HWE_HINTS="pinentry-qt4 kde-baseapps-bin kde-window-manager"
EDUBUNTU_HWE_HINTS="gnome-session gnome-terminal"
XFCE_HWE_HINTS="lightdm-gtk-greeter unity-settings-daemon- unity-control-center- notification-daemon- libpanel-applet-4-0-"
LUBUNTU_HWE_HINTS="xfce4-notifyd xterm notification-daemon- audacious-plugins thermald"
UBUNTUGNOME_HWE_HINTS="unity-settings-daemon- unity-control-center- libaccount-plugin-1.0-0-"
XUBUNTU_HWE_HINTS="xfce4-notifyd xscreensaver-data- $XFCE_HWE_HINTS"
MYTHBUNTU_HWE_HINTS="notify-osd $XFCE_HWE_HINTS"
UBUNTUSTUDIO_HWE_HINTS="xfce4-notifyd $XFCE_HWE_HINTS"
case $PROJECT in case $PROJECT in
ubuntu|ubuntu-dvd) ubuntu|ubuntu-dvd)
add_task install minimal standard add_package install ubuntu-minimal ubuntu-standard
case "$ARCH+$SUBARCH" in case "$ARCH+$SUBARCH" in
armhf+omap4) armhf+omap4)
# Don't use the task as this drags in the regular X # Don't use the task as this drags in the regular X
@ -186,14 +218,19 @@ case $PROJECT in
xserver-xorg-input-evdev-omap-revert xserver-xorg-input-evdev-omap-revert
;; ;;
*) *)
add_task install ubuntu-desktop add_package install ubuntu-desktop $UNITY_HWE_HINTS
add_package install $HWE_X_PACKAGES
;; ;;
esac esac
LIVE_TASK='ubuntu-live' LIVE_TASK='ubuntu-live'
LIVE_TASK_FILTER='--not -Pe ^linux-\(headers\|image\|signed\)'
case $ARCH in
amd64) add_package live $SIGNED_KERNEL_PACKAGE ;;
esac
;; ;;
kubuntu|kubuntu-dvd) kubuntu|kubuntu-dvd)
add_task install minimal standard add_package install ubuntu-minimal ubuntu-standard
case "$ARCH+$SUBARCH" in case "$ARCH+$SUBARCH" in
armhf+omap4) armhf+omap4)
# Don't use the task as this drags in the regular X # Don't use the task as this drags in the regular X
@ -205,55 +242,76 @@ case $PROJECT in
xserver-xorg-input-evdev-omap-revert xserver-xorg-input-evdev-omap-revert
;; ;;
*) *)
add_task install kubuntu-desktop add_package install kubuntu-desktop $KUBUNTU_HWE_HINTS
add_package install $HWE_X_PACKAGES
;; ;;
esac esac
LIVE_TASK='kubuntu-live' LIVE_TASK='kubuntu-live'
LIVE_TASK_FILTER='--not -Pe ^linux-\(headers\|image\|signed\)'
case $ARCH in
amd64) add_package live $SIGNED_KERNEL_PACKAGE ;;
esac
COMPONENTS='main restricted universe' COMPONENTS='main restricted universe'
add_chroot_hook remove-gnome-icon-cache add_chroot_hook remove-gnome-icon-cache
;; ;;
kubuntu-active) kubuntu-active)
add_task install minimal standard kubuntu-active add_package install ubuntu-minimal ubuntu-standard kubuntu-active
add_package install $HWE_X_PACKAGES
LIVE_TASK='kubuntu-active-live' LIVE_TASK='kubuntu-active-live'
COMPONENTS='main restricted universe' COMPONENTS='main restricted universe'
add_chroot_hook remove-gnome-icon-cache add_chroot_hook remove-gnome-icon-cache
;; ;;
edubuntu|edubuntu-dvd) edubuntu|edubuntu-dvd)
add_task install minimal standard ubuntu-desktop edubuntu-desktop-gnome add_package install ubuntu-minimal ubuntu-standard ubuntu-desktop edubuntu-desktop $UNITY_HWE_HINTS $EDUBUNTU_HWE_HINTS
add_package install $HWE_X_PACKAGES
LIVE_TASK='edubuntu-live' LIVE_TASK='edubuntu-live'
LIVE_TASK_FILTER='--not -Pe ^linux-\(headers\|image\|signed\)'
case $ARCH in
amd64) add_package live $SIGNED_KERNEL_PACKAGE ;;
esac
COMPONENTS='main restricted universe' COMPONENTS='main restricted universe'
;; ;;
xubuntu) xubuntu)
add_task install minimal standard xubuntu-desktop add_package install ubuntu-minimal ubuntu-standard xubuntu-desktop $XUBUNTU_HWE_HINTS
add_package install $HWE_X_PACKAGES
add_package install xterm add_package install xterm
LIVE_TASK='xubuntu-live' LIVE_TASK='xubuntu-live'
COMPONENTS='main restricted universe multiverse' LIVE_TASK_FILTER='--not -Pe ^linux-\(headers\|image\|signed\)'
case $ARCH in case $ARCH in
amd64|i386) KERNEL_FLAVOURS=generic ;; amd64) add_package live $SIGNED_KERNEL_PACKAGE ;;
esac esac
COMPONENTS='main restricted universe multiverse'
;; ;;
ubuntu-netbook) ubuntu-netbook)
add_task install minimal standard ubuntu-netbook add_package install ubuntu-minimal ubuntu-standard ubuntu-netbook
LIVE_TASK='netbook-live' LIVE_TASK='netbook-live'
;; ;;
mythbuntu) mythbuntu)
add_task install minimal standard mythbuntu-desktop add_package install ubuntu-minimal ubuntu-standard mythbuntu-desktop $MYTHBUNTU_HWE_HINTS
add_package install $HWE_X_PACKAGES
LIVE_TASK='mythbuntu-live' LIVE_TASK='mythbuntu-live'
LIVE_TASK_FILTER='--not -Pe ^linux-\(headers\|image\|signed\)'
case $ARCH in
amd64) add_package live $SIGNED_KERNEL_PACKAGE ;;
esac
COMPONENTS='main restricted universe multiverse' COMPONENTS='main restricted universe multiverse'
;; ;;
lubuntu) lubuntu)
add_task install minimal standard lubuntu-desktop add_task install minimal standard
add_package install lubuntu-desktop $LUBUNTU_HWE_HINTS
add_package install $HWE_X_PACKAGES
LIVE_TASK='lubuntu-live' LIVE_TASK='lubuntu-live'
COMPONENTS='main restricted universe multiverse' LIVE_TASK_FILTER='--not -Pe ^linux-\(headers\|image\|signed\)'
case $ARCH in case $ARCH in
amd64|i386) KERNEL_FLAVOURS=generic ;; amd64) add_package live $SIGNED_KERNEL_PACKAGE ;;
esac esac
COMPONENTS='main restricted universe multiverse'
# The Lubuntu STRUCTURE file has "feature # The Lubuntu STRUCTURE file has "feature
# no-follow-recommends". Mirror this. # no-follow-recommends". Mirror this.
@ -261,23 +319,34 @@ case $PROJECT in
;; ;;
ubuntu-gnome) ubuntu-gnome)
add_task install minimal standard ubuntu-gnome-desktop add_package install ubuntu-minimal ubuntu-standard ubuntu-gnome-desktop $UBUNTUGNOME_HWE_HINTS
add_package install $HWE_X_PACKAGES
LIVE_TASK='ubuntu-gnome-live' LIVE_TASK='ubuntu-gnome-live'
LIVE_TASK_FILTER='--not -Pe ^linux-\(headers\|image\|signed\)'
case $ARCH in
amd64) add_package live $SIGNED_KERNEL_PACKAGE ;;
esac
COMPONENTS='main restricted universe' COMPONENTS='main restricted universe'
;; ;;
ubuntustudio-dvd) ubuntustudio-dvd)
add_task install minimal standard ubuntustudio-desktop ubuntustudio-audio ubuntustudio-font-meta ubuntustudio-graphics ubuntustudio-video ubuntustudio-publishing ubuntustudio-photography add_package install ubuntu-minimal ubuntu-standard ubuntustudio-desktop ubuntustudio-audio ubuntustudio-font-meta ubuntustudio-graphics ubuntustudio-video ubuntustudio-publishing ubuntustudio-photography $UBUNTUSTUDIO_HWE_HINTS
add_package install $HWE_X_PACKAGES
COMPONENTS='main restricted universe multiverse' COMPONENTS='main restricted universe multiverse'
case $ARCH in case $ARCH in
amd64|i386) KERNEL_FLAVOURS=lowlatency ;; amd64|i386) KERNEL_FLAVOURS=lowlatency-lts-vivid ;;
esac esac
;; ;;
ubuntukylin) ubuntukylin)
add_task install minimal standard ubuntu-desktop add_package install ubuntu-minimal ubuntu-standard ubuntu-desktop $UNITY_HWE_HINTS
add_package install $HWE_X_PACKAGES
add_package install ubuntukylin-default-settings add_package install ubuntukylin-default-settings
LIVE_TASK='ubuntu-live' LIVE_TASK='ubuntu-live'
LIVE_TASK_FILTER='--not -Pe ^linux-\(headers\|image\|signed\)'
case $ARCH in
amd64) add_package live $SIGNED_KERNEL_PACKAGE ;;
esac
COMPONENTS='main restricted universe' COMPONENTS='main restricted universe'
;; ;;
@ -286,7 +355,7 @@ case $PROJECT in
;; ;;
ubuntu-server) ubuntu-server)
add_task install minimal add_package install ubuntu-minimal
COMPONENTS='main' COMPONENTS='main'
PREINSTALL_POOL_SEEDS='server-ship' PREINSTALL_POOL_SEEDS='server-ship'
;; ;;
@ -316,17 +385,17 @@ case $PROJECT in
esac esac
if [ "$PREINSTALLED" != "true" ] && [ "$LIVE_TASK" ]; then if [ "$PREINSTALLED" != "true" ] && [ "$LIVE_TASK" ]; then
add_task live "$LIVE_TASK" add_task live ${LIVE_TASK_FILTER:+--filter "$LIVE_TASK_FILTER"} "$LIVE_TASK"
fi fi
case $PROJECT in case $PROJECT in
ubuntu-dvd) ubuntu-dvd)
add_task install ubuntu-usb add_task install ubuntu-usb
add_task live ubuntu-usb-live add_task live ${LIVE_TASK_FILTER:+--filter "$LIVE_TASK_FILTER"} ubuntu-usb-live
;; ;;
*-dvd) *-dvd)
add_task live "$PROJECT-live" add_task live ${LIVE_TASK_FILTER:+--filter "$LIVE_TASK_FILTER"} "$PROJECT-live"
;; ;;
esac esac
@ -490,6 +559,45 @@ EOF
;; ;;
esac esac
if [ "$EXTRA_PPAS" ]; then
rm -f config/archives/extra-ppas.list.chroot \
config/archives/extra-ppas.key.chroot
gpg_tmpdir="$(mktemp -d)"
run_gpg () {
gpg --no-default-keyring --no-options --homedir "$gpg_tmpdir" \
--secret-keyring "$gpg_tmpdir/secring.gpg" \
--keyserver hkp://keyserver.ubuntu.com:80/ \
"$@"
}
for extra_ppa in $EXTRA_PPAS; do
extra_ppa_fingerprint="$(/usr/share/livecd-rootfs/get-ppa-fingerprint "$extra_ppa")"
echo "deb http://ppa.launchpad.net/$extra_ppa/ubuntu @DISTRIBUTION@ main" >> config/archives/extra-ppas.list.chroot
run_gpg --keyring "$gpg_tmpdir/pubring.gpg" \
--recv "$extra_ppa_fingerprint"
run_gpg --keyring "$gpg_tmpdir/pubring.gpg" \
--output "$gpg_tmpdir/export.gpg" \
--export "$extra_ppa_fingerprint"
got_fingerprint="$(
run_gpg --keyring "$gpg_tmpdir/export.gpg" \
--fingerprint --batch --with-colons |
grep '^fpr:' | cut -d: -f10)"
if [ "$got_fingerprint" != "$extra_ppa_fingerprint" ]; then
echo "Fingerprints do not match. Got:" >&2
echo "$got_fingerprint" | sed 's/^/ /' >&2
echo "Expected:" >&2
echo " $extra_ppa_fingerprint" >&2
exit 1
fi
cat "$gpg_tmpdir/export.gpg" >> config/archives/extra-ppas.key.chroot
rm -f "$gpg_tmpdir/export.gpg"
done
rm -rf "$gpg_tmpdir"
cp -a config/archives/extra-ppas.list.chroot \
config/archives/extra-ppas.list.binary
cp -a config/archives/extra-ppas.key.chroot \
config/archives/extra-ppas.key.binary
fi
# cribbed from cdimage, perhaps this should be a small helper script in germinate? # cribbed from cdimage, perhaps this should be a small helper script in germinate?
add_inheritance () { add_inheritance () {
case " $inherit " in case " $inherit " in