@ -168,7 +168,7 @@ if [ "$PREINSTALLED" = "true" ] && [ "$SUBPROJECT" != "wubi" ]; then
ubuntu-server)
ubuntu-server)
add_package live oem-config-debconf ubiquity-frontend-debconf
add_package live oem-config-debconf ubiquity-frontend-debconf
;;
;;
ubuntu-core|base|ubuntu-touch|ubuntu-pd|ubuntu-cpc|ubuntu-desktop-next)
ubuntu-core|ubuntu-base| base|ubuntu-touch|ubuntu-pd|ubuntu-cpc|ubuntu-desktop-next)
;;
;;
*)
*)
add_package live oem-config-gtk ubiquity-frontend-gtk
add_package live oem-config-gtk ubiquity-frontend-gtk
@ -350,11 +350,6 @@ case $PROJECT in
;;
;;
ubuntu-core)
ubuntu-core)
# 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
OPTS="${OPTS:+$OPTS }--apt-recommends false"
OPTS="${OPTS:+$OPTS }--apt-recommends false"
# some workarounds because the seeds are not quite
# some workarounds because the seeds are not quite
@ -409,7 +404,10 @@ case $PROJECT in
# universe needed for 'system-image-cli' and multiverse for firmware
# universe needed for 'system-image-cli' and multiverse for firmware
COMPONENTS='main restricted universe multiverse'
COMPONENTS='main restricted universe multiverse'
fi
OPTS="${OPTS:+$OPTS }--bootstrap-flavour=minimal"
;;
ubuntu-base)
OPTS="${OPTS:+$OPTS }--bootstrap-flavour=minimal"
OPTS="${OPTS:+$OPTS }--bootstrap-flavour=minimal"
;;
;;
@ -557,17 +555,11 @@ case $ARCH in
esac
esac
case $PROJECT in
case $PROJECT in
ubuntu-server|ubuntu-core|ubuntu-touch|ubuntu-pd)
ubuntu-server|ubuntu-base|ubuntu-touch|ubuntu-pd)
case $SUBPROJECT in
system-image)
# keep the kernel for the system-image build
;;
*)
OPTS="${OPTS:+$OPTS }--linux-packages=none --initramfs=none"
OPTS="${OPTS:+$OPTS }--linux-packages=none --initramfs=none"
KERNEL_FLAVOURS=none
KERNEL_FLAVOURS=none
BINARY_REMOVE_LINUX=false
BINARY_REMOVE_LINUX=false
;;
;;
esac
esac
esac
add_chroot_hook update-apt-file-cache
add_chroot_hook update-apt-file-cache