tmt: Rename test image to RHEL 10 and check for rhel templates
Resolves: RHEL-31850
This commit is contained in:
parent
44136c9fbd
commit
620f5e2ba2
@ -2,7 +2,7 @@
|
|||||||
set -eux
|
set -eux
|
||||||
|
|
||||||
FAILANY=0
|
FAILANY=0
|
||||||
BOOTISO=/var/tmp/lorax-fedora-iso/images/boot.iso
|
BOOTISO=/var/tmp/lorax-rhel10-iso/images/boot.iso
|
||||||
KSNAME=fedora-minimal.ks
|
KSNAME=fedora-minimal.ks
|
||||||
KS="/usr/share/doc/lorax/$KSNAME"
|
KS="/usr/share/doc/lorax/$KSNAME"
|
||||||
OUTISO=/var/tmp/out.iso
|
OUTISO=/var/tmp/out.iso
|
||||||
@ -239,10 +239,13 @@ function run_as_user {
|
|||||||
umount_dirs
|
umount_dirs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
# Gather up the list of system repo files and use them for lorax
|
||||||
REPOS=$(for f in /etc/yum.repos.d/*repo; do echo -n "--repo $f "; done)
|
REPOS=$(find /etc/yum.repos.d/ -maxdepth 1 -type f -name '*\.repo' -exec echo -n "--repo {} " \;)
|
||||||
if [ -z "$REPOS" ]; then
|
if [ -z "$REPOS" ]; then
|
||||||
echo "No system repos found"
|
echo "No system repos found"
|
||||||
exit 1
|
exit 1
|
||||||
@ -252,8 +255,8 @@ fi
|
|||||||
# Run lorax using the host's repository configuration file
|
# Run lorax using the host's repository configuration file
|
||||||
if [ ! -e "$BOOTISO" ]; then
|
if [ ! -e "$BOOTISO" ]; then
|
||||||
running "Build boot.iso with lorax"
|
running "Build boot.iso with lorax"
|
||||||
lorax --product="Fedora" --version=rawhide --release=rawhide --volid="Fedora-rawhide-test" \
|
lorax --product="Red Hat Enterprise Linux" --version=10 --release=10 --volid="RHEL-10-test" \
|
||||||
$REPOS --isfinal --nomacboot /var/tmp/lorax-fedora-iso/ || exit 1
|
$REPOS --isfinal /var/tmp/lorax-rhel10-iso/ || exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Test mkksiso on the new boot.iso
|
# Test mkksiso on the new boot.iso
|
||||||
|
Loading…
Reference in New Issue
Block a user