-
Bug
-
Resolution: Done-Errata
-
Normal
-
rhel-8.7.0
-
libdnf-0.63.0-18.el8
-
None
-
Important
-
rhel-sst-cs-software-management
-
ssg_core_services
-
10
-
12
-
None
-
QE ack, Dev ack
-
False
-
-
None
-
None
-
-
Pass
-
Enabled
-
Automated
-
Release Note Not Required
-
-
Unspecified
-
None
Description of problem:
When a kernel-core dependency is targeted as the install, such as "yum install kernel-core-uname-r", dnf ignores the 3 kernel limit set by installonly_limit
Version-Release number of selected component (if applicable):
dnf-4.7.0-11.el8.noarch
libdnf-0.63.0-11.1.el8.x86_64
How reproducible:
Everytime
Steps to Reproduce:
1. Have 3 (less than latest version) kernel/kernel-cores installed
2. # yum install kernel-core-uname-r
3.
Actual results:
[root@r8 ~]# rpm -q kernel
kernel-4.18.0-372.26.1.el8_6.x86_64
kernel-4.18.0-372.32.1.el8_6.x86_64
kernel-4.18.0-425.3.1.el8.x86_64
[root@r8 ~]# rpm -q kernel-core
kernel-core-4.18.0-372.26.1.el8_6.x86_64
kernel-core-4.18.0-372.32.1.el8_6.x86_64
kernel-core-4.18.0-425.3.1.el8.x86_64
[root@r8 ~]# yum install kernel-core-uname-r
Installing:
kernel-core x86_64 4.18.0-425.10.1.el8_7 rhel-8-for-x86_64-baseos-rpms
Reinstalling:
kernel-core x86_64 4.18.0-372.26.1.el8_6 rhel-8-for-x86_64-baseos-rpms
[root@r8 ~]# rpm -q kernel
kernel-4.18.0-372.26.1.el8_6.x86_64
kernel-4.18.0-372.32.1.el8_6.x86_64
kernel-4.18.0-425.3.1.el8.x86_64
[root@r8 ~]# rpm -q kernel-core
kernel-core-4.18.0-372.32.1.el8_6.x86_64
kernel-core-4.18.0-425.3.1.el8.x86_64
kernel-core-4.18.0-425.10.1.el8_7.x86_64
kernel-core-4.18.0-372.26.1.el8_6.x86_64
Expected results:
only 3 kernel/kernel-cores should be installed at a time. The oldest one should be removed when a new kernel is installed.
Additional info:
This may potentially be the cause for https://bugzilla.redhat.com/show_bug.cgi?id=2163461
- is cloned by
-
RHEL-12124 installing a kernel-core dependency bypasses the installonly_limit
- Closed
- external trackers
- links to
-
RHBA-2023:123342 libdnf bug fix and enhancement update
- mentioned on