tests: Replace $stream with 10-stream

Lorax doesn't use the variable substitution from the host so hard-code
this in the repo files before passing them to lorax.

Related: RHEL-44311
This commit is contained in:
Brian C. Lane 2024-06-25 13:38:27 -07:00 committed by Brian C. Lane
parent 72e534fa7c
commit 4213d895e0

View File

@ -14,6 +14,10 @@ if [ -z "$REPOS" ]; then
exit 1
fi
# The c10s tmt systems have started using $stream in the repo urls as of 6/2024, substitute
# 10-stream for this variable so that they can be passed to lorax
sed -i 's/$stream/10-stream/g' /etc/yum.repos.d/*.repo
# Run lorax using the host's repository configuration file
lorax --product="Red Hat Enterprise Linux" --version=10 --release=10 --volid="RHEL-10-test" \
$REPOS --isfinal --nomacboot /var/tmp/lorax-rhel10-iso/