[neon/infrastructure/pangea-data] imager: special case iso build options per architecture
Carlos De Maine
null at kde.org
Mon May 20 12:44:57 BST 2024
Git commit 8391bea1f433cd85ae24b10552c5b81409bdd039 by Carlos De Maine.
Committed on 20/05/2024 at 11:44.
Pushed by carlosdem into branch 'master'.
special case iso build options per architecture
M +13 -4 imager/ubuntu-defaults-image
https://invent.kde.org/neon/infrastructure/pangea-data/-/commit/8391bea1f433cd85ae24b10552c5b81409bdd039
diff --git a/imager/ubuntu-defaults-image b/imager/ubuntu-defaults-image
index 54064b7..bbac1db 100755
--- a/imager/ubuntu-defaults-image
+++ b/imager/ubuntu-defaults-image
@@ -212,10 +212,19 @@ if [ -e "$CONFIG_SETTINGS" ]; then
. $CONFIG_SETTINGS
fi
-SUITE="$SUITE" PROJECT="$FLAVOR" ARCH="$ARCH" LB_ARCHITECTURES="$ARCH" LB_BUILD_ARCH="$ARCH" \
-LB_MIRROR_BOOTSTRAP="$MIRROR" LB_MIRROR_CHROOT_SECURITY="$SECURITY_MIRROR" \
-IMAGEFORMAT=squashfs BINARYFORMAT=iso-hybrid ISOHYBRID_OPTIONS="--uefi" lb config
-
+case $ARCH in
+ *amd64)
+ SUITE="$SUITE" PROJECT="$FLAVOR" ARCH="$ARCH" LB_ARCHITECTURES="$ARCH" LB_BUILD_ARCH="$ARCH" \
+ LB_MIRROR_BOOTSTRAP="$MIRROR" LB_MIRROR_CHROOT_SECURITY="$SECURITY_MIRROR" \
+ IMAGEFORMAT=squashfs BINARYFORMAT=iso-hybrid ISOHYBRID_OPTIONS="--uefi" lb config
+ ;;
+case $ARCH in
+ *arm64)
+ SUITE="$SUITE" PROJECT="$FLAVOR" ARCH="$ARCH" LB_ARCHITECTURES="$ARCH" LB_BUILD_ARCH="$ARCH" \
+ LB_MIRROR_BOOTSTRAP="$MIRROR" LB_MIRROR_CHROOT_SECURITY="$SECURITY_MIRROR" \
+ IMAGEFORMAT=squashfs lb config
+ ;;
+esac
echo "LB_LINUX_FLAVOURS=\"$LB_LINUX_FLAVOURS\"" >> config/chroot
More information about the Neon-commits
mailing list