Skip to content

Commit cb89baa

Browse files
committed
images: Fix RHEL 8/9 build root
Recently "/rhel-9.6-build" ceased to exist, these directories now only exist with the ".0" z-stream suffix. Same for RHEL 8, but *not* for RHEL 10. Fixes #7316 Fixes #7317
1 parent 8d47f3f commit cb89baa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

images/scripts/rhel.setup

+4-1
Original file line numberDiff line numberDiff line change
@@ -381,8 +381,11 @@ if [ "$DO_BUILD" -eq 1 ]; then
381381
if [ "${IMAGE#rhel-*}" != "$IMAGE" ]; then
382382
if [ "${IMAGE#rhel-11}" != "$IMAGE" ]; then
383383
zversion="-beta"
384-
else
384+
elif [ "${IMAGE#rhel-10}" != "$IMAGE" ]; then
385385
zversion=""
386+
else
387+
# RHEL 8 and 9
388+
zversion=".0"
386389
fi
387390
cat <<EOF > /etc/mock/default.cfg
388391
config_opts['chroothome'] = '/builddir'

0 commit comments

Comments
 (0)