Red Hat Bugzilla – Bug 1249427
upon install or upgrade, dnf removes kernel even if there are fewer than installonly_limit kernels installed
Last modified: 2015-08-03 07:08:31 EDT
Description of problem:
Upon install or upgrade, dnf removes one existing kernel even if there are fewer than installonly_limit kernels installed.
Version-Release number of selected component (if applicable):
$ rpm -qa \*dnf\* \*hawkey\*|sort
Steps to Reproduce:
1. Have the following kernels installed:
$ rpm -q kernel
2. Make sure installonly_limit is more than 2:
$ grep installonly /etc/dnf/dnf.conf
3. dnf upgrade or dnf install kernel
dnf tries to install kernel-4.1.3-200.fc22 (expected) and remove kernel-4.0.7-300.fc22 (not expected!)
dnf should only install the requested kernel, not remove any that are below installonly_limit.
Actually, bumping installonly_limit to 4 makes dnf keep 3 kernels as expected, so I'm suspecting an off-by-one error in the code. Could this be a duplicate of bug 1214562 or is this another issue?
Sorry for the noise. I found that I only removed kernel, but kernel-core and kernel-modules were still there, so everything works as designed.