mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-06-08 16:41:35 +00:00
ubuntu-cpc: parallel builds: Remove old targets
Also fix references to the old file names in the hooks
This commit is contained in:
parent
d154f08e04
commit
3029676441
@ -65,8 +65,8 @@ install_grub() {
|
|||||||
chroot mountpoint mkdir -p "${efi_boot_dir}"
|
chroot mountpoint mkdir -p "${efi_boot_dir}"
|
||||||
|
|
||||||
if [ "${SUBPROJECT:-}" = minimized ] && [ -n "$partuuid" ]; then
|
if [ "${SUBPROJECT:-}" = minimized ] && [ -n "$partuuid" ]; then
|
||||||
# FIXME: code duplicated between 032-disk-image.binary
|
# FIXME: code duplicated between disk-image.binary
|
||||||
# and 033-disk-image-uefi.binary. We want to fix this to not
|
# and disk-image-uefi.binary. We want to fix this to not
|
||||||
# have initramfs-tools installed at all on these images.
|
# have initramfs-tools installed at all on these images.
|
||||||
echo "partuuid found for root device; omitting initrd"
|
echo "partuuid found for root device; omitting initrd"
|
||||||
echo "GRUB_FORCE_PARTUUID=$partuuid" >> mountpoint/etc/default/grub.d/40-force-partuuid.cfg
|
echo "GRUB_FORCE_PARTUUID=$partuuid" >> mountpoint/etc/default/grub.d/40-force-partuuid.cfg
|
||||||
|
@ -12,6 +12,8 @@ BOOTPART_END=
|
|||||||
BOOT_MOUNTPOINT=
|
BOOT_MOUNTPOINT=
|
||||||
ROOTPART_START=1
|
ROOTPART_START=1
|
||||||
|
|
||||||
|
my_d=$(dirname $(readlink -f ${0}))
|
||||||
|
|
||||||
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"
|
||||||
@ -97,7 +99,7 @@ case $ARCH:$SUBARCH in
|
|||||||
# not the best place for this, but neither flash-kernel nor
|
# not the best place for this, but neither flash-kernel nor
|
||||||
# u-boot have provisions for installing u-boot via maintainer
|
# u-boot have provisions for installing u-boot via maintainer
|
||||||
# script
|
# script
|
||||||
config/hooks/raspi2/mkknlimg --dtok \
|
${my_d}/raspi2/mkknlimg --dtok \
|
||||||
mountpoint/usr/lib/u-boot/rpi_2/u-boot.bin \
|
mountpoint/usr/lib/u-boot/rpi_2/u-boot.bin \
|
||||||
mountpoint/boot/firmware/uboot.bin
|
mountpoint/boot/firmware/uboot.bin
|
||||||
;;
|
;;
|
||||||
|
@ -1,14 +1,5 @@
|
|||||||
#!/bin/bash -ex
|
#!/bin/bash -ex
|
||||||
|
|
||||||
case $IMAGE_TARGETS in
|
|
||||||
""|*qcow2*)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Skipping qcow2 image build"
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
case $ARCH:$SUBARCH in
|
case $ARCH:$SUBARCH in
|
||||||
# Not sure if any other cloud images use subarch for something that
|
# Not sure if any other cloud images use subarch for something that
|
||||||
# should take qcow2 format, so only skipping this on raspi2 for now.
|
# should take qcow2 format, so only skipping this on raspi2 for now.
|
||||||
|
@ -3,21 +3,12 @@
|
|||||||
#
|
#
|
||||||
# Generate a squashfs root and manifest
|
# Generate a squashfs root and manifest
|
||||||
|
|
||||||
case $IMAGE_TARGETS in
|
|
||||||
""|*squashfs*)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Skipping squashfs build"
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
if [ -n "$SUBARCH" ]; then
|
if [ -n "$SUBARCH" ]; then
|
||||||
echo "Skipping rootfs build for subarch flavor build"
|
echo "Skipping rootfs build for subarch flavor build"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# This is the directory created by 031-0-create-root-dir.binary
|
# This is the directory created by create-root-dir.binary
|
||||||
rootfs_dir=rootfs.dir
|
rootfs_dir=rootfs.dir
|
||||||
|
|
||||||
squashfs_f="$PWD/livecd.ubuntu-cpc.squashfs"
|
squashfs_f="$PWD/livecd.ubuntu-cpc.squashfs"
|
||||||
|
@ -8,7 +8,7 @@ if [ -n "$SUBARCH" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# This is the directory created by 031-0-create-root-dir.binary
|
# This is the directory created by create-root-dir.binary
|
||||||
rootfs_dir=rootfs.dir
|
rootfs_dir=rootfs.dir
|
||||||
|
|
||||||
cp $rootfs_dir.manifest livecd.ubuntu-cpc.rootfs.manifest
|
cp $rootfs_dir.manifest livecd.ubuntu-cpc.rootfs.manifest
|
||||||
|
@ -24,15 +24,6 @@ case ${SUBPROJECT:-} in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case $IMAGE_TARGETS in
|
|
||||||
""|*vagrant*)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Skipping Vagrant image build"
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
cur_d=${PWD}
|
cur_d=${PWD}
|
||||||
my_d=$(dirname $(readlink -f ${0}))
|
my_d=$(dirname $(readlink -f ${0}))
|
||||||
|
|
||||||
|
@ -18,15 +18,6 @@ case $ARCH in
|
|||||||
exit 0;;
|
exit 0;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case ${IMAGE_TARGETS:-} in
|
|
||||||
""|*vmdk*)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Skipping VMDK image build"
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
. config/functions
|
. config/functions
|
||||||
|
|
||||||
if [ -e binary/boot/disk-uefi.ext4 ]; then
|
if [ -e binary/boot/disk-uefi.ext4 ]; then
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
# and checksums. This step produces an OVA that is suitable for use with
|
# and checksums. This step produces an OVA that is suitable for use with
|
||||||
# Cloud's that support the OVF specification.
|
# Cloud's that support the OVF specification.
|
||||||
#
|
#
|
||||||
# For this step, we re-use the VMDK's made in 040-vmdk-image.binary
|
# For this step, we re-use the VMDK's made in vmdk-image.binary
|
||||||
|
|
||||||
case ${SUBPROJECT:-} in
|
case ${SUBPROJECT:-} in
|
||||||
minimized)
|
minimized)
|
||||||
@ -32,15 +32,6 @@ case $ARCH in
|
|||||||
exit 0;;
|
exit 0;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
case ${IMAGE_TARGETS:-} in
|
|
||||||
""|*vmdk*)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "Skipping OVA image build"
|
|
||||||
exit 0
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
cur_d=${PWD}
|
cur_d=${PWD}
|
||||||
my_d=$(dirname $(readlink -f ${0}))
|
my_d=$(dirname $(readlink -f ${0}))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user