* lp:~mvo/livecd-rootfs/ubuntu-core-system-image:

- install the "ubuntu-core" task and a kernel when building 
    ubuntu-core with SUBPROJECT=system-image
This commit is contained in:
Michael Vogt 2014-07-28 20:12:01 +02:00
commit e0d60c9c07
2 changed files with 25 additions and 4 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
livecd-rootfs (2.230) utopic; urgency=low
* lp:~mvo/livecd-rootfs/ubuntu-core-system-image:
- install the "ubuntu-core" task and a kernel when building
ubuntu-core with SUBPROJECT=system-image
-- Michael Vogt <michael.vogt@ubuntu.com> Mon, 28 Jul 2014 20:10:56 +0200
livecd-rootfs (2.229) utopic; urgency=medium livecd-rootfs (2.229) utopic; urgency=medium
[ Michael Terry ] [ Michael Terry ]

View File

@ -324,6 +324,13 @@ case $PROJECT in
ubuntu-core) ubuntu-core)
add_task install minimal add_task install minimal
# mvo: This is for cron.daily-preinstalled
# CDIMAGE_PREINSTALLED is not passed from build.py
# and PREINSTALLED means something different. So
# we use SUBPROJECT to pass on the information
if [ "$SUBPROJECT" = "system-image" ]; then
add_task install ubuntu-core
fi
OPTS="${OPTS:+$OPTS }--bootstrap-flavour=minimal" OPTS="${OPTS:+$OPTS }--bootstrap-flavour=minimal"
;; ;;
@ -429,10 +436,16 @@ esac
case $PROJECT in case $PROJECT in
ubuntu-server|ubuntu-core|ubuntu-touch) ubuntu-server|ubuntu-core|ubuntu-touch)
OPTS="${OPTS:+$OPTS }--linux-packages=none --initramfs=none" case $SUBPROJECT in
KERNEL_FLAVOURS=none system-image)
BINARY_REMOVE_LINUX=false # keep the kernel for the system-image build
;; ;;
*)
OPTS="${OPTS:+$OPTS }--linux-packages=none --initramfs=none"
KERNEL_FLAVOURS=none
BINARY_REMOVE_LINUX=false
;;
esac
esac esac
add_chroot_hook update-apt-file-cache add_chroot_hook update-apt-file-cache