-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkinstalledkernels: detect kernel-rt and improve comparisons (deps
changed) RHEL Real Time (RT) systems boot using kernel-rt rpm. But still, even a kernel rpm can be installed. So now, detect whether we are booted via kernel-rt or not and do a comparison only in regarding the expected package name. Unfortunately, this make comparisons between releases more difficult as we need to check the whole release, including alphanumeric characters in release, e.g.: kernel-rt-3.10.0-1160.2.1.rt56.1133.el7.x86_64 Previously we worked just with numbers. To make the check valid and more robust, let's use rpm.labelCompare(). We are sure this library is on every RHEL 7 system as dnf requires it (and probably yum too). Let's use it as it resolves all our current troubles right now and makes whole comparison more reliable. In this implementation I am skipping comparison with epoch as there is no (and will not be) kernel with bumped epoch. Add 'rpm' into requirements
- Loading branch information
Showing
2 changed files
with
240 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.