Resolve the conflict.

ubuntu/cosmic
Gary.Wzl 7 years ago
commit 8c12c46d08

6
debian/changelog vendored

@ -1,3 +1,9 @@
livecd-rootfs (2.478) UNRELEASED; urgency=medium
* Add the IMAGEFORMAT=none to support generating a single rootfs.
-- Gary Wang <gary.wang@canonical.com> Mon, 16 Oct 2017 10:40:30 +0800
livecd-rootfs (2.477) artful; urgency=medium livecd-rootfs (2.477) artful; urgency=medium
* Fix server live image to pull subiquity from the stable channel, not * Fix server live image to pull subiquity from the stable channel, not

@ -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

@ -12,6 +12,11 @@ BOOTPART_END=
BOOT_MOUNTPOINT= BOOT_MOUNTPOINT=
ROOTPART_START=1 ROOTPART_START=1
if [ "${IMAGEFORMAT:-}" = "none" ]; then
echo "Skipping disk image build as we only generate rootfs."
exit 0
fi
case $ARCH:$SUBARCH in case $ARCH:$SUBARCH in
ppc64el:*|powerpc:*) ppc64el:*|powerpc:*)
echo "POWER disk images are handled separately" echo "POWER disk images are handled separately"

@ -3,6 +3,11 @@
# #
# Generate a squashfs root and manifest # Generate a squashfs root and manifest
if [ "${IMAGEFORMAT:-}" = "none" ]; then
echo "Skipping squashfs build as we only generate rootfs."
exit 0
fi
case $IMAGE_TARGETS in case $IMAGE_TARGETS in
""|*squashfs*) ""|*squashfs*)
;; ;;

@ -1,5 +1,10 @@
#!/bin/bash -eux #!/bin/bash -eux
if [ "${IMAGEFORMAT:-}" = "none" ]; then
echo "Skipping EFI image build as we only generate rootfs."
exit 0
fi
case $ARCH in case $ARCH in
amd64|arm64) amd64|arm64)
;; ;;

@ -1,4 +1,10 @@
#!/bin/bash -eux #!/bin/bash -eux
if [ "${IMAGEFORMAT:-}" = "none" ]; then
echo "Skipping disk images build as we only generate rootfs."
exit 0
fi
case $ARCH in case $ARCH in
ppc64el|powerpc) ppc64el|powerpc)
;; ;;

@ -1,5 +1,10 @@
#!/bin/bash -ex #!/bin/bash -ex
if [ "${IMAGEFORMAT:-}" = "none" ]; then
echo "Skipping qcow2 image build as we only generate rootfs."
exit 0
fi
case $IMAGE_TARGETS in case $IMAGE_TARGETS in
""|*qcow2*) ""|*qcow2*)
;; ;;

@ -3,6 +3,11 @@
# #
# Generate VMDK files # Generate VMDK files
if [ "${IMAGEFORMAT:-}" = "none" ]; then
echo "Skipping VMDK image build as we only generate rootfs."
exit 0
fi
case $ARCH in case $ARCH in
i386|amd64) ;; i386|amd64) ;;
*) echo "VMDK images are not supported for $ARCH yet."; *) echo "VMDK images are not supported for $ARCH yet.";

@ -13,6 +13,12 @@
# Switch on $ARCH to determine which ID and description to use in the produced # Switch on $ARCH to determine which ID and description to use in the produced
# OVF. We have fancy Ubuntu-specific IDs in the OVF specification, we might as # OVF. We have fancy Ubuntu-specific IDs in the OVF specification, we might as
# well use them. # well use them.
if [ "${IMAGEFORMAT:-}" = "none" ]; then
echo "Skipping OVA image build since we only generate rootfs."
exit 0
fi
case $ARCH in case $ARCH in
amd64) amd64)
ovf_id=94 ovf_id=94

@ -15,6 +15,11 @@
# some packages in it, convert it to a vmdk, and then assemble the vagrant # some packages in it, convert it to a vmdk, and then assemble the vagrant
# box. # box.
if [ "${IMAGEFORMAT:-}" = "none" ]; then
echo "Skipping Vagrant image build since we only generate rootfs."
exit 0
fi
case $IMAGE_TARGETS in case $IMAGE_TARGETS in
""|*vagrant*) ""|*vagrant*)
;; ;;

Loading…
Cancel
Save