Additional changes were needed for the server-live hooks, since those were exiting early for SUBARCH images.

focal-iotg-bump
Łukasz 'sil2100' Zemczak 3 years ago
parent f59dad4ce9
commit 7410fc4a3e

@ -15,7 +15,7 @@ case $IMAGE_TARGETS in
;; ;;
esac esac
if [ -n "$SUBARCH" ]; then if [ -n "$SUBARCH" && "$SUBARCH" != "intel-iot" ]; then
echo "Skipping rootfs build for subarch flavor build" echo "Skipping rootfs build for subarch flavor build"
exit 0 exit 0
fi fi

@ -16,7 +16,7 @@ case $IMAGE_TARGETS in
;; ;;
esac esac
if [ -n "$SUBARCH" ]; then if [ -n "$SUBARCH" && "$SUBARCH" != "intel-iot" ]; then
echo "Skipping rootfs build for subarch flavor build" echo "Skipping rootfs build for subarch flavor build"
exit 0 exit 0
fi fi

@ -14,7 +14,7 @@ case ${IMAGE_TARGETS-} in
;; ;;
esac esac
if [ -n "${SUBARCH-}" ]; then if [ -n "${SUBARCH-}" && "$SUBARCH" != "intel-iot" ]; then
echo "Skipping rootfs build for subarch flavor build" echo "Skipping rootfs build for subarch flavor build"
exit 0 exit 0
fi fi
@ -27,7 +27,14 @@ INSTALLER_ROOT=binary/boot/installer.squashfs.dir
KERNEL_BITS_ROOT=binary/boot/kernel-bits.dir KERNEL_BITS_ROOT=binary/boot/kernel-bits.dir
KERNEL_BITS_OVERLAY=binary/boot/overlay-kernel-bits KERNEL_BITS_OVERLAY=binary/boot/overlay-kernel-bits
variants='ga hwe' case ${SUBARCH-} in
intel-iot)
variants='intel'
;;
*)
variants='ga hwe'
;;
esac
for variant in $variants; do for variant in $variants; do
if [ "$variant" = "ga" ]; then if [ "$variant" = "ga" ]; then
@ -36,6 +43,9 @@ for variant in $variants; do
elif [ "$variant" = "hwe" ]; then elif [ "$variant" = "hwe" ]; then
kernel_metapkg=linux-generic-hwe-$(lsb_release -sr) kernel_metapkg=linux-generic-hwe-$(lsb_release -sr)
flavor=generic-hwe flavor=generic-hwe
elif [ "$variant" = "intel" ]; then
kernel_metapkg=linux-intel-iotg-edge
flavor=intel-iotg
else else
echo "bogus variant: $variant" echo "bogus variant: $variant"
exit 1 exit 1

Loading…
Cancel
Save