@ -107,7 +107,7 @@ add_binary_hook ()
}
if [ -z "${IMAGEFORMAT:-}" ]; then
case $PROJECT:$SUBPROJECT in
case $PROJECT:${ SUBPROJECT:-} in
ubuntu-cpc:*)
IMAGEFORMAT=ext4
;;
@ -121,7 +121,7 @@ case $IMAGEFORMAT in
ext2|ext3|ext4)
OPTS="${OPTS:+$OPTS }--initramfs none --chroot-filesystem $IMAGEFORMAT"
PREINSTALLED=true
case $SUBPROJECT in
case ${ SUBPROJECT:-} in
wubi)
add_package install lupin-support
COMPONENTS='main restricted universe multiverse'
@ -140,7 +140,7 @@ case $IMAGEFORMAT in
plain)
INITRAMFS_TYPE=none
case $PROJECT:$SUBPROJECT in
case $PROJECT:${ SUBPROJECT:-} in
ubuntu-server:live)
add_package live lupin-casper
INITRAMFS_TYPE=auto
@ -238,7 +238,7 @@ esac
SIGNED_KERNEL_PACKAGE="linux-signed-generic"
if [ "$SUBPROJECT" = minimize ]; then
if [ "${ SUBPROJECT:-} " = minimized ]; then
OPTS="${OPTS:+$OPTS }--bootstrap-flavour=minimal"
fi
@ -265,7 +265,7 @@ case $PROJECT in
# 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
if [ "${ SUBPROJECT:-} " = "system-image" ]; then
OPTS="${OPTS:+$OPTS }--linux-packages=linux-image"
fi
;;
@ -419,7 +419,7 @@ case $PROJECT in
ubuntu-server)
add_task install minimal
case $SUBPROJECT in
case ${ SUBPROJECT:-} in
live)
add_task install standard
add_task install server
@ -510,7 +510,7 @@ case $PROJECT in
# SUBPROJECT, but it's a handy thing that launchpad-buildd
# already passes through to us that we weren't otherwise
# using here.
case $SUBPROJECT in
case ${ SUBPROJECT:-} in
ubuntu-rtm/dogfood)
MIRROR=http://derived-archive.dogfood.content.paddev.net/ubuntu-rtm/
OPTS="${OPTS:+$OPTS }--apt-secure false"
@ -528,7 +528,7 @@ case $PROJECT in
;;
ubuntu-cpc)
if [ "$SUBPROJECT" = minimize ]; then
if [ "${ SUBPROJECT:-} " = minimized ]; then
add_task install cloud-image
add_package install sudo
else
@ -638,7 +638,7 @@ case $ARCH in
;;
esac
case $PROJECT:$SUBPROJECT in
case $PROJECT:${ SUBPROJECT:-} in
ubuntu-server:live)
;;
ubuntu-server:*|ubuntu-base:*|ubuntu-touch:*|ubuntu-touch-custom:*)
@ -662,7 +662,7 @@ case $PROJECT in
;;
esac
case $SUBPROJECT in
case ${ SUBPROJECT:-} in
wubi)
add_binary_hook build-wubildr
;;
@ -688,10 +688,10 @@ lb config noauto \
"$@"
echo "LB_CHROOT_HOOKS=\"$CHROOT_HOOKS\"" >> config/chroot
echo "SUBPROJECT=\"$SUBPROJECT\"" >> config/chroot
echo "SUBPROJECT=\"${ SUBPROJECT:-} \"" >> config/chroot
echo "LB_BINARY_HOOKS=\"$BINARY_HOOKS\"" >> config/binary
echo "BUILDSTAMP=\"$NOW\"" >> config/binary
echo "SUBPROJECT=\"$SUBPROJECT\"" >> config/binary
echo "SUBPROJECT=\"${ SUBPROJECT:-} \"" >> config/binary
case $ARCH+$SUBARCH in
armhf+raspi2)
@ -768,7 +768,7 @@ EOF
;;
esac
if [ $PROJECT = ubuntu-server ] && [ $SUBPROJECT != live ]; then
if [ $PROJECT = ubuntu-server ] && [ ${ SUBPROJECT:-} != live ]; then
cat > config/hooks/100-remove-fstab.chroot <<EOF
#! /bin/sh
rm -f /etc/fstab
@ -804,7 +804,7 @@ EOF
config/archives/proposed.list.binary
fi
case $PROJECT:$SUBPROJECT in
case $PROJECT:${ SUBPROJECT:-} in
*-dvd:*)
. config/bootstrap
@ -890,7 +890,7 @@ EOF
fi
fi
case $SUBPROJECT in
case ${ SUBPROJECT:-} in
ubuntu-rtm|ubuntu-rtm/*)
# debootstrap doesn't know about ubuntu-rtm series directly. Rather
# than having to teach it, we employ a few hacks to make it use the