@@ -27,6 +27,7 @@ if [[ -n "${TARGET_DISTRO:-}" ]]; then
2727fi
2828
2929# Setup variables
30+ ARCH=$( uname -m)
3031TEST_UUID=anaconda-$(( 1 + RANDOM % 1000000 ))
3132TEMPDIR=$( mktemp -d)
3233GUEST_ADDRESS=192.168.100.50
@@ -74,21 +75,53 @@ case "${ID}-${VERSION_ID}" in
7475 BIB_URL=" registry.stage.redhat.io/rhel9/bootc-image-builder:9.8"
7576 BOOT_ARGS=" uefi"
7677 COPR_CHROOT=" centos-stream-9-${ARCH} "
78+ { set +x; } 2> /dev/null
7779 sed -i " s/REPLACE_ME_HERE/${DOWNLOAD_NODE} /g" files/rhel-9-8.repo
80+ sed -i " s/REPLACE_ARCH_HERE/${ARCH} /g" files/rhel-9-8.repo
81+ if [[ " ${USE_COMPOSE_RPMS} " == true ]]; then
82+ GREENBOOT_PACKAGES_URL=" https://${DOWNLOAD_NODE} /rhel-9/composes/RHEL-9/${COMPOSE_ID} /compose/AppStream/${ARCH} /os/Packages/"
83+ fi
84+ set -x
85+ ;;
86+ " rhel-9.9" )
87+ OS_VARIANT=" rhel9-unknown"
88+ BASE_IMAGE_URL=" registry.stage.redhat.io/rhel9/rhel-bootc:9.9"
89+ BIB_URL=" registry.stage.redhat.io/rhel9/bootc-image-builder:9.9"
90+ BOOT_ARGS=" uefi"
91+ { set +x; } 2> /dev/null
92+ sed -i " s/REPLACE_ME_HERE/${DOWNLOAD_NODE} /g" files/rhel-9-9.repo
93+ sed -i " s/REPLACE_ARCH_HERE/${ARCH} /g" files/rhel-9-9.repo
7894 if [[ " ${USE_COMPOSE_RPMS} " == true ]]; then
79- GREENBOOT_PACKAGES_URL=" https://${DOWNLOAD_NODE} /rhel-9/composes/RHEL-9/${COMPOSE_ID} /compose/AppStream/x86_64 /os/Packages/"
95+ GREENBOOT_PACKAGES_URL=" https://${DOWNLOAD_NODE} /rhel-9/composes/RHEL-9/${COMPOSE_ID} /compose/AppStream/${ARCH} /os/Packages/"
8096 fi
97+ set -x
8198 ;;
8299 " rhel-10.2" )
83100 OS_VARIANT=" rhel10-unknown"
84101 BASE_IMAGE_URL=" registry.stage.redhat.io/rhel10/rhel-bootc:10.2"
85102 BIB_URL=" registry.stage.redhat.io/rhel10/bootc-image-builder:10.2"
86103 BOOT_ARGS=" uefi"
87104 COPR_CHROOT=" centos-stream-10-${ARCH} "
105+ { set +x; } 2> /dev/null
88106 sed -i " s/REPLACE_ME_HERE/${DOWNLOAD_NODE} /g" files/rhel-10-2.repo
107+ sed -i " s/REPLACE_ARCH_HERE/${ARCH} /g" files/rhel-10-2.repo
89108 if [[ " ${USE_COMPOSE_RPMS} " == true ]]; then
90- GREENBOOT_PACKAGES_URL=" https://${DOWNLOAD_NODE} /rhel-10/composes/RHEL-10/${COMPOSE_ID} /compose/AppStream/x86_64 /os/Packages/"
109+ GREENBOOT_PACKAGES_URL=" https://${DOWNLOAD_NODE} /rhel-10/composes/RHEL-10/${COMPOSE_ID} /compose/AppStream/${ARCH} /os/Packages/"
91110 fi
111+ set -x
112+ ;;
113+ " rhel-10.3" )
114+ OS_VARIANT=" rhel10-unknown"
115+ BASE_IMAGE_URL=" registry.stage.redhat.io/rhel10/rhel-bootc:10.3"
116+ BIB_URL=" registry.stage.redhat.io/rhel10/bootc-image-builder:10.3"
117+ BOOT_ARGS=" uefi"
118+ { set +x; } 2> /dev/null
119+ sed -i " s/REPLACE_ME_HERE/${DOWNLOAD_NODE} /g" files/rhel-10-3.repo
120+ sed -i " s/REPLACE_ARCH_HERE/${ARCH} /g" files/rhel-10-3.repo
121+ if [[ " ${USE_COMPOSE_RPMS} " == true ]]; then
122+ GREENBOOT_PACKAGES_URL=" https://${DOWNLOAD_NODE} /rhel-10/composes/RHEL-10/${COMPOSE_ID} /compose/AppStream/${ARCH} /os/Packages/"
123+ fi
124+ set -x
92125 ;;
93126 * )
94127 echo " unsupported distro: ${ID} -${VERSION_ID} "
@@ -256,12 +289,24 @@ COPY files/rhel-9-8.repo /etc/yum.repos.d/rhel-9-8.repo
256289EOF
257290 fi
258291
292+ if [[ " ${ID} -${VERSION_ID} " == " rhel-9.9" ]]; then
293+ tee -a Containerfile >> /dev/null << EOF
294+ COPY files/rhel-9-9.repo /etc/yum.repos.d/rhel-9-9.repo
295+ EOF
296+ fi
297+
259298 if [[ " ${ID} -${VERSION_ID} " == " rhel-10.2" ]]; then
260299 tee -a Containerfile >> /dev/null << EOF
261300COPY files/rhel-10-2.repo /etc/yum.repos.d/rhel-10-2.repo
262301EOF
263302 fi
264303
304+ if [[ " ${ID} -${VERSION_ID} " == " rhel-10.3" ]]; then
305+ tee -a Containerfile >> /dev/null << EOF
306+ COPY files/rhel-10-3.repo /etc/yum.repos.d/rhel-10-3.repo
307+ EOF
308+ fi
309+
265310 tee -a Containerfile >> /dev/null << EOF
266311RUN (dnf install -y 'dnf5-command(copr)' || dnf install -y 'dnf-command(copr)') && \
267312 dnf copr enable -y packit/fedora-iot-greenboot-rs-${PR_NUMBER} ${COPR_CHROOT} && \
0 commit comments