* Add a test for SUBPROJECT when PROJECT comes to ubuntu-server.

* Use notations "0/1" instead of "false/true" as a value for GENERATE_ROOTFS_ONLY.
ubuntu/cosmic
Gary.Wzl 7 years ago
parent 8fc8c6dc00
commit 8a8d203743

3
debian/changelog vendored

@ -1,6 +1,7 @@
livecd-rootfs (2.457ubuntu1) UNRELEASED; urgency=medium
livecd-rootfs (2.458) artful; urgency=medium
* Add GENERATE_ROOTFS_ONLY to support generating a single rootfs.
* Add a test for SUBPROJECT when PROJECT comes to ubuntu-server.
-- Gary Wang <gary.wang@canonical.com> Mon, 18 Sep 2017 09:51:04 +0800

@ -235,7 +235,7 @@ EOF
fi
) 2>&1 | tee binary.log
if [ ! -z "${GENERATE_ROOTFS_ONLY:-}" ] && [ "${GENERATE_ROOTFS_ONLY}" != "false" ]; then
if [ ! -z "${GENERATE_ROOTFS_ONLY:-}" ] && [ "${GENERATE_ROOTFS_ONLY}" = 1 ]; then
exit 0
fi

@ -757,7 +757,7 @@ EOF
;;
esac
if [ $PROJECT = ubuntu-server ] && [ $SUBPROJECT != live ]; then
if [ $PROJECT = ubuntu-server ] && [ ! -z "${SUBPROJECT:-}" ] && [ $SUBPROJECT != live ]; then
cat > config/hooks/100-remove-fstab.chroot <<EOF
#! /bin/sh
rm -f /etc/fstab

Loading…
Cancel
Save