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