@ -436,11 +436,17 @@ esac
case $PROJECT in
ubuntu-server|ubuntu-core|ubuntu-touch)
case $SUBPROJECT in
system-image)
# keep the kernel for the system-image build
;;
*)
OPTS="${OPTS:+$OPTS }--linux-packages=none --initramfs=none"
KERNEL_FLAVOURS=none
BINARY_REMOVE_LINUX=false
esac
add_chroot_hook update-apt-file-cache
add_chroot_hook update-apt-xapian-index