fix: workaround for failing rhel installations for now

This commit is contained in:
Roni Väyrynen
2024-10-10 08:59:25 +03:00
parent bc5399d358
commit aa07c3a6cf
2 changed files with 15 additions and 12 deletions

View File

@@ -49,6 +49,8 @@ Supported Linux distributions and versions:
- Ubuntu 22.04 - Ubuntu 22.04
- Ubuntu 20.04 - Ubuntu 20.04
NOTE: RHEL based distros cannot do file level restore from backups in XO due to missing libvhdi-tools. See: https://github.com/ronivay/XenOrchestraInstallerUpdater/issues/256
Only x86_64 architecture is supported. For all those raspberry pi users out there, check [container](https://hub.docker.com/r/ronivay/xen-orchestra) instead. Only x86_64 architecture is supported. For all those raspberry pi users out there, check [container](https://hub.docker.com/r/ronivay/xen-orchestra) instead.
All OS/Architecture checks can be disabled in `xo-install.cfg` for experimental purposes. Not recommended obviously. All OS/Architecture checks can be disabled in `xo-install.cfg` for experimental purposes. Not recommended obviously.

View File

@@ -241,19 +241,20 @@ function InstallDependenciesRPM {
printok "Installing yarn" printok "Installing yarn"
fi fi
# Disabled for now due to forensics.cert.org going away
# only install libvhdi-tools if vhdimount is not present # only install libvhdi-tools if vhdimount is not present
if [[ -z $(runcmd_stdout "command -v vhdimount") ]]; then # if [[ -z $(runcmd_stdout "command -v vhdimount") ]]; then
echo # echo
printprog "Installing libvhdi-tools" # printprog "Installing libvhdi-tools"
if [[ "$INSTALL_REPOS" == "true" ]]; then # if [[ "$INSTALL_REPOS" == "true" ]]; then
runcmd "rpm -ivh https://forensics.cert.org/cert-forensics-tools-release-el${OSVERSION}.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 "sed -i 's/enabled=1/enabled=0/g' /etc/yum.repos.d/cert-forensics-tools.repo"
runcmd "dnf --enablerepo=forensics install -y libvhdi-tools" # runcmd "dnf --enablerepo=forensics install -y libvhdi-tools"
else # else
runcmd "dnf install -y libvhdi-tools" # runcmd "dnf install -y libvhdi-tools"
fi # fi
printok "Installing libvhdi-tools" # printok "Installing libvhdi-tools"
fi # fi
echo echo
printprog "Enabling and starting redis service" printprog "Enabling and starting redis service"