-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
Properly recognize Almalinux as an RHEL clone. #12487
Conversation
I was testing your PR on /etc/os-release information:
NAME : AlmaLinux
VERSION : 8.5 (Arctic Sphynx)
ID : almalinux
ID_LIKE : rhel centos fedora
VERSION_ID : 8.5
We detected these:
Distribution : almalinux
Version : 8.5
Codename : 8.5 (Arctic Sphynx)
Package Manager : install_yum
Packages Tree : centos
Detection Method: /etc/os-release
Default Python v: 3
./packaging/installer/install-required-packages.sh: line 2220: syntax error near unexpected token `<'
./packaging/installer/install-required-packages.sh: line 2220: `mapfile -t PACKAGES_TO_INSTALL < <(packages | sort -u)' |
@thiagoftsm I’m unable to replicate this issue when testing either in Docker, or in an Alma Linux VPS I spun up specifically for testing this code, but I also don’t have access to a system running Vagrant to test there. I suspect that you will see the same error without these changes in that environment. |
I am getting...
|
This should make things behave more correctly.
@thiagoftsm @stelfrag Can you retest with the changes I just pushed? And, if you still see the same issues, please share the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After last commit, the script ran without errors on my host:
/etc/os-release information:
NAME : AlmaLinux
VERSION : 8.5 (Arctic Sphynx)
ID : almalinux
ID_LIKE : rhel centos fedora
VERSION_ID : 8.5
We detected these:
Distribution : almalinux
Version : 8.5
Codename : 8.5 (Arctic Sphynx)
Package Manager : install_dnf
Packages Tree : centos
Detection Method: /etc/os-release
Default Python v: 3
LGTM!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No errors now
* Properly recognize Almalinux as an RHEL clone. * Prefer DNF over YUM when available. This should make things behave more correctly.
Summary
SSIA
Test Plan
This can be tested using an Alma Linux Docker container.
Additional Information
Fixes: #12486