1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2026-11-08 19:26:48 +00:00

fix(install): RHEL steps enable CRB, openSUSE steps warn about nginx's default server, the compute bootstrap detects openSUSE Leap

The RHEL manual install failed at libvirt-devel, which is in CRB; the
installer already enables it. openSUSE's nginx.conf has its own port-80
server for localhost, which the RHEL steps already warn about. The
bootstrap skipped /etc/os-release as a symlink, which on openSUSE Leap
is the only release file, so it found no distribution.
This commit is contained in:
catborise 2026-10-17 23:43:23 +03:00
parent 42359ca2e2
commit 99570669c5
2 changed files with 5 additions and 3 deletions

View file

@ -188,7 +188,8 @@ __gather_linux_system_info() {
echo redhat-release lsb-release
)"); do
[ -L "/etc/${rsource}" ] && continue # Don't follow symlinks
# Don't follow symlinks, except os-release (a link to /usr/lib/os-release, openSUSE's only release file)
[ -L "/etc/${rsource}" ] && [ "${rsource}" != "os-release" ] && continue
[ ! -f "/etc/${rsource}" ] && continue # Does not exist
n=$(echo "${rsource}" | sed -e 's/[_-]release$//' -e 's/[_-]version$//')