From 45654ccba1c43e93234672894e32a0f4359cf47f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roni=20V=C3=A4yrynen?= Date: Sun, 16 Oct 2022 12:10:55 +0300 Subject: [PATCH] feat: add centos 9 stream support --- README.md | 1 + xo-install.sh | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9292472..a4278bf 100644 --- a/README.md +++ b/README.md @@ -36,6 +36,7 @@ First thing you need is a VM (or even a physical machine if you wish) where to i Supported Linux distributions and versions: +- CentOS 9 Stream - CentOS 8 Stream - AlmaLinux 9 - AlmaLinux 8 diff --git a/xo-install.sh b/xo-install.sh index e388e56..cf8c9d5 100755 --- a/xo-install.sh +++ b/xo-install.sh @@ -243,7 +243,7 @@ function InstallDependenciesRPM { echo printprog "Installing libvhdi-tools" if [[ "$INSTALL_REPOS" == "true" ]]; then - runcmd "rpm -ivh https://forensics.cert.org/cert-forensics-tools-release-el8.rpm" + runcmd "rpm -ivh https://forensics.cert.org/cert-forensics-tools-release-el${OSVERSION}.rpm" runcmd "sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/cert-forensics-tools.repo" runcmd "yum --enablerepo=forensics install -y libvhdi-tools" else @@ -1263,8 +1263,8 @@ function CheckOS { exit 1 fi - if [[ "$OSNAME" == "CentOS" ]] && [[ "$OSVERSION" != "8" ]]; then - printfail "Only CentOS 8 supported" + if [[ "$OSNAME" == "CentOS" ]] && [[ "$OSVERSION" =~ ^(8|9)$ ]]; then + printfail "Only CentOS 8/9 supported" exit 1 fi