File tree 1 file changed +5
-1
lines changed 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -90,13 +90,17 @@ case "${ID}-${VERSION_ID}" in
90
90
OSTREE_REF=" centos/9/${ARCH} /edge"
91
91
OS_VARIANT=" centos-stream9"
92
92
BOOT_ARGS=" uefi,firmware.feature0.name=secure-boot,firmware.feature0.enabled=no"
93
- BOOT_LOCATION=" https://composes.stream.centos.org/production/latest-CentOS-Stream/compose/BaseOS/x86_64/os/"
94
93
sudo cp files/centos-stream-9.json /etc/osbuild-composer/repositories/centos-9.json;;
95
94
* )
96
95
echo " unsupported distro: ${ID} -${VERSION_ID} "
97
96
exit 1;;
98
97
esac
99
98
99
+ if [[ " ${ID} -${VERSION_ID} " == " centos-9" ]]; then
100
+ CURRENT_COMPOSE_CS9=$( curl -s " https://composes.stream.centos.org/production/" | grep -ioE " >CentOS-Stream-9-.*/<" | tr -d ' >/<' | tail -1)
101
+ BOOT_LOCATION=" https://composes.stream.centos.org/production/${CURRENT_COMPOSE_CS9} /compose/BaseOS/x86_64/os/"
102
+ fi
103
+
100
104
# Build greenboot RPMs
101
105
greenprint " Building greenboot packages"
102
106
mkdir -p /var/www/html/packages
You can’t perform that action at this time.
0 commit comments