Skip to content

Commit

Permalink
alma9: Itroducing alma9 support
Browse files Browse the repository at this point in the history
This patch provides initial config for AlmaLinux 9.

Similar to CentOS Stream 9, engine build is turned off at the moment.

On AlmaLinux 9 'VERSION_ID' takes a value of '9.0', so we need to trim
the string to match the COPR chroot name.

Signed-off-by: Marcin Sobczyk <[email protected]>
  • Loading branch information
tinez committed Aug 25, 2022
1 parent ff947bf commit b73cb97
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 2 deletions.
1 change: 1 addition & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ echo "with node image url: ${NODE_URL_BASE:=https://resources.ovirt.org/repos/ov

# cache CentOS images
declare -A ISO_URL
ISO_URL[alma9]="Alma.iso"
ISO_URL[el8]="CentOS.iso"
ISO_URL[el8stream]="CentOS-Stream.iso"
ISO_URL[el9stream]="CentOS-Stream-9.iso"
Expand Down
1 change: 1 addition & 0 deletions configs/alma9/alma9-provision-he.sh.in
1 change: 1 addition & 0 deletions configs/alma9/alma9-provision-host.sh.in
1 change: 1 addition & 0 deletions configs/alma9/alma9.ks.in
7 changes: 7 additions & 0 deletions configs/alma9/build.env
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# See 'makefiles/vars.mk' for a list of variables that can be overriden
export REPO_ROOT=https://repo.almalinux.org/almalinux/9/
export INSTALL_URL=../$IMAGE
export BUILD_HOST_INSTALLED=1
export BUILD_ENGINE_INSTALLED=
export BUILD_HE_INSTALLED=${BUILD_HE_INSTALLED}
export OPENSCAP_PROFILE="${OPENSCAP_PROFILE}"
2 changes: 1 addition & 1 deletion configs/el8stream/el8stream-provision-engine.sh.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -xe

dnf copr enable -y ovirt/ovirt-master-snapshot centos-stream-$(. /etc/os-release; echo ${VERSION_ID})
dnf copr enable -y ovirt/ovirt-master-snapshot centos-stream-$(. /etc/os-release; echo ${VERSION_ID} | grep -o '^[0-9]')

dnf module enable -y javapackages-tools pki-deps postgresql:12 mod_auth_openidc:2.3
dnf -y install \
Expand Down
2 changes: 1 addition & 1 deletion configs/el8stream/el8stream-provision-host.sh.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -xe

dnf copr enable -y ovirt/ovirt-master-snapshot centos-stream-$(. /etc/os-release; echo ${VERSION_ID})
dnf copr enable -y ovirt/ovirt-master-snapshot centos-stream-$(. /etc/os-release; echo ${VERSION_ID} | grep -o '^[0-9]')
dnf install -y \
dnf-utils \
ovirt-release-master
Expand Down

0 comments on commit b73cb97

Please sign in to comment.