3c99324c3b
The tmt systems have a number of extra repos installed, and they can cause package selection conflicts with baseos and appstream. Exclude them from the list passed to lorax for building the test boot.iso Related: RHEL-28654
24 lines
977 B
Bash
Executable File
24 lines
977 B
Bash
Executable File
#!/bin/bash
|
|
set -eux
|
|
|
|
if [ ! -e /usr/share/lorax/templates.d/80-rhel/ ]; then
|
|
echo "Failed to find lorax-templates-rhel templates in /usr/share/lorax/templates.d/"
|
|
exit 1
|
|
fi
|
|
|
|
# Gather up the list of system repo files and use them for lorax
|
|
# Skip centos-addons and all epel repos, these cause conflicts with other release packages
|
|
REPOS=$(find /etc/yum.repos.d/ -maxdepth 1 -type f -name '*\.repo' ! -name 'centos-addons.repo' ! -name 'epel*' -exec echo -n "--repo {} " \;)
|
|
if [ -z "$REPOS" ]; then
|
|
echo "No system repos found"
|
|
exit 1
|
|
fi
|
|
|
|
# The c9s tmt systems have started using $stream in the repo urls as of 6/2024, substitute
|
|
# 9-stream for this variable so that they can be passed to lorax
|
|
sed -i 's/$stream/9-stream/g' /etc/yum.repos.d/*.repo
|
|
|
|
# Run lorax using the host's repository configuration file
|
|
lorax --product="Red Hat Enterprise Linux" --version=9 --release=9 --volid="RHEL-9-test" \
|
|
$REPOS --isfinal --nomacboot /var/tmp/lorax-rhel9-iso/
|