|
|
|
@ -183,6 +183,9 @@ case $IMAGEFORMAT in
|
|
|
|
|
exit 0
|
|
|
|
|
;;
|
|
|
|
|
|
|
|
|
|
none)
|
|
|
|
|
OPTS="${OPTS:+$OPTS }--system=normal --chroot-filesystem $IMAGEFORMAT"
|
|
|
|
|
;;
|
|
|
|
|
*)
|
|
|
|
|
case $PROJECT in
|
|
|
|
|
ubuntu-server|ubuntu-touch|ubuntu-touch-custom)
|
|
|
|
@ -652,6 +655,9 @@ esac
|
|
|
|
|
case $PROJECT:${SUBPROJECT:-} in
|
|
|
|
|
ubuntu-server:live)
|
|
|
|
|
;;
|
|
|
|
|
ubuntu-server:system-image)
|
|
|
|
|
OPTS="${OPTS:+$OPTS }--linux-packages=linux-image"
|
|
|
|
|
;;
|
|
|
|
|
ubuntu-server:*|ubuntu-base:*|ubuntu-touch:*|ubuntu-touch-custom:*)
|
|
|
|
|
OPTS="${OPTS:+$OPTS }--linux-packages=none --initramfs=none"
|
|
|
|
|
KERNEL_FLAVOURS=none
|
|
|
|
@ -779,7 +785,7 @@ EOF
|
|
|
|
|
;;
|
|
|
|
|
esac
|
|
|
|
|
|
|
|
|
|
if [ $PROJECT = ubuntu-server ] && [ ${SUBPROJECT:-} != live ]; then
|
|
|
|
|
if [ $PROJECT = ubuntu-server ] && [ "${SUBPROJECT:-}" != live ] && [ "${SUBPROJECT:-}" != system-image ]; then
|
|
|
|
|
cat > config/hooks/100-remove-fstab.chroot <<EOF
|
|
|
|
|
#! /bin/sh
|
|
|
|
|
rm -f /etc/fstab
|
|
|
|
|