Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add RHEL 10 platform support #1070

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions fragments/platform/rhel10/payload/default_packages.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Default RHEL10 packages section (empty)
%packages
%end
1 change: 1 addition & 0 deletions fragments/platform/rhel10/payload/ostreecontainer.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ostreecontainer --no-signature-verification --transport=registry --url=quay.io/centos-bootc/centos-bootc:stream10
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not available and probably won't be anytime soon, so tests depending on this fragment will fail.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's ok, we will see it and address it separately.

7 changes: 7 additions & 0 deletions fragments/platform/rhel10/payload/unified_packages.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# RHEL 10 packages section from unified DVD.
# The unified DVD should contain under one link both BaseOS and AppStream so install AppStream specific package.

%packages
# Anaconda package is part of the AppStream repository. It is not contained in the BaseOS.
anaconda
%end
3 changes: 3 additions & 0 deletions fragments/platform/rhel10/repos/default.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Default RHEL10 repositories - BeseOS + AppStream or unified repo can be used
url --url @KSTEST_URL@
repo --name=appstream --baseurl @KSTEST_MODULAR_URL@
2 changes: 2 additions & 0 deletions fragments/platform/rhel10/repos/unified-nfs.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Unified ISO for RHEL-10 served on NFS server
nfs --server NFS_SERVER --dir NFS_DIR
3 changes: 3 additions & 0 deletions fragments/platform/rhel10/repos/unified.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Unified ISO for RHEL 10 served on http server
# BaseOS and AppStream repositories should be loaded automatically from the unified repo
url RHEL10_UNIFIED_REPO_URL_GOES_HERE
3 changes: 3 additions & 0 deletions fragments/platform/rhel10/section-data/hello-world.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Create a variable in the %pre section with a link to the archived repository of Hello Word.
# The curl tool will download this archive and unpack it in the system.
ADDON_SOURCE="https://github.com/rhinstaller/hello-world-anaconda-addon/archive/master.tar.gz"
7 changes: 7 additions & 0 deletions fragments/platform/rhel10/section-data/server-dvd-link.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Create a variable in the pre/post section with link to a RHEL DVD.
# The curl tool will download this ISO and it will be processed later in the section.
_LINK=<ADD_LINK_TO_RHEL-10_ISO_HERE>
ISO_LOCATION="$(curl -L $_LINK | grep -Po "RHEL-10.*?-x86_64-dvd1.iso" | head -n 1)"
ISO_LOCATION="${_LINK}/${ISO_LOCATION}"

echo $ISO_LOCATION
3 changes: 3 additions & 0 deletions fragments/platform/rhel10/section-data/unified-iso.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Create a variable in the pre/post section with link to a RHEL-10 unified ISO
# The curl tool will download this ISO and it will be processed later in the section.
ISO_LOCATION=<link to a unified ISO>
5 changes: 5 additions & 0 deletions fragments/platform/rhel10/timezone/ntp_disabled.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Set up the timezone.
timezone --utc Europe/Prague

# Disable NTP.
timesource --ntp-disable
5 changes: 5 additions & 0 deletions fragments/platform/rhel10/timezone/ntp_enabled.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Set up the timezone.
timezone --utc Europe/Prague

# Enable NTP.
timesource --ntp-server ntp.cesnet.cz
6 changes: 6 additions & 0 deletions fragments/platform/rhel10/validation/unified.ks
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Validate installed packages on RHEL 10 system.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these copied from somewhere? Should they maybe be symlinks to some common files?

Just asking for possible followup improvements, not nacking this :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe, I think we haven't been using (modifying) this structure enough to start thinking about it yet (copied the stuff so far).
This fragment would be shared between three rhel platforms (rhel8, rhel9, rhel10 ) so maybe we could create a rhel folder as a target for symlinks (or link to rhel8?).
I'd be a bit afraid of trying to be generic at too high cost at this point, but we can track it as a potential follow-up issue.


# Check that the anaconda package was correctly installed.
if ! rpm -q anaconda ; then
echo '*** anaconda package was not installed!' >> /root/RESULT
fi
6 changes: 6 additions & 0 deletions scripts/defaults-rhel10.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Default settings for testing RHEL 10. This requires being inside the Red Hat VPN.

source network-device-names.cfg
export KSTEST_URL='http://download.eng.bos.redhat.com/rhel-10/nightly/RHEL-10-Public-Beta/latest-RHEL-10.0/compose/BaseOS/x86_64/os/'
export KSTEST_MODULAR_URL='http://download.eng.bos.redhat.com/rhel-10/nightly/RHEL-10-Public-Beta/latest-RHEL-10.0/compose/AppStream/x86_64/os/'
export KSTEST_FTP_URL='ftp://ftp.tu-chemnitz.de/pub/linux/fedora/linux/development/rawhide/Everything/$basearch/os/'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this non-standard mirror ok for the ftp?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not, but we don't have a better one. The ftp test (the one using this var) is disabled on rhel.

Loading