Bug 122138

Summary: freshen of kernel silently removes kernel-smp
Product: [Fedora] Fedora Reporter: Dave Botsch <botsch>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact: Mike McLean <mikem>
Severity: medium Docs Contact:
Priority: medium    
Version: 1   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-05-04 15:17:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Dave Botsch 2004-04-30 19:25:40 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.2)
Gecko/20040428

Description of problem:
This bug may also exist under ia32, but, I have not yet tested.

When doing an rpm -Fvh kernel on a system that has both kernel and
kernel-smp installed, the kernel rpm is upgraded as expected. However,
if you then rpm -q kernel-smp, you'll note that you no longer have an
smp kernel installed (and, such, cannot then rpm -Fvh kernel-smp).

Version-Release number of selected component (if applicable):
rpm-4.2.1-0.30

How reproducible:
Always

Steps to Reproduce:
1.Install an old kernel, kernel-smp. Remove any newer kernels
2. rpm -Fvh kernel-newversion.rpm
3. rpm -q kernel-smp. Kernel-smp is no longer installed.
    

Actual Results:  kernel-smp is silently removed.

Expected Results:  kernel is upgraded, but kernel-smp is not touched.

Additional info:

If, instead, you first rpm -Fvh kernel-smp, kernel-smp is freshened,
and kernel is not touched (it stays at the old version). You can then
rpm -Fvh kernel.

At the very least, a warning should be printed out that kernel-smp
will be removed.

Comment 1 Jeff Johnson 2004-05-04 13:41:48 UTC
Kernels should be installed with -i, not -F or -U.

The kernel-smp package carries a
    Provides: kernel = V
with V == version that causes the kernel-smp package to be
erased when upgrading.

Comment 2 Dave Botsch 2004-05-04 14:23:20 UTC
In this case, the freshen should either not be allowed to complete as
it affects another package, or a warning should be generated. Other
packages should not just be silently removed with no indication given
to the user.

If -F/-U should not be used for the kernel, then rpm should not allow
this (and, in fact, after doing -i on test systems, kernels are
usually pushed out to other systems using a -F).

This new behavior is changed from Redhat 7.3, where a freshen of the
kernel did not remove kernel-smp.