Bug 136604

Summary: Sanity check for kernel RPM removal
Product: Red Hat Enterprise Linux 3 Reporter: Daniel McNamara <daniel>
Component: kernelAssignee: dff <dff>
Status: CLOSED DUPLICATE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.0CC: nobody+pnasrat, petrides
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-02-21 19:06:31 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 Daniel McNamara 2004-10-21 05:44:01 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3)
Gecko/20041001 Firefox/0.10.1

Description of problem:
Bug is not to do with program but with humans.

Sometimes it appears we can be astoundingly stupid. In this case I ran
a kernel -e <kernel version> and half way through I reliased this was
the current running version of the kernel. As you can imagine removing
kernel files whilst it's running makes Bad Things(tm) happen.

In any case it struck me that maybe a sanity check could be
implemented in rpm that would basically do:

Does the kernel rpm version I'm being asked to remove match the
current running kernel version? (I assume uname or similar could be
used to compare this)
If so, fail the remove and inform user about this (and possibly that
they need a lot more caffeine)

Provision for this to be overriden with --force to allow forced
removal in case of a spurios match

Just something to catch us when we're being a little stupid.

Version-Release number of selected component (if applicable):
rpm-4.2.2-0.14

How reproducible:
Always

Steps to Reproduce:
1. Be very, very tired or not paying attention
2. rpm -e <kernel version> (where kernel version matches current
running kernel)
3. Watch Bad Things(tm) happen
    

Actual Results:  Kicked self for stupid act

Expected Results:  Magical running of system with lack of kicking of self

Additional info:

Comment 2 Suzanne Hillman 2004-10-21 19:47:31 UTC
Internal RFE bug #136702 entered; will be considered for future releases.

Comment 5 Ernie Petrides 2004-10-25 21:52:49 UTC

*** This bug has been marked as a duplicate of 136702 ***

Comment 6 Red Hat Bugzilla 2006-02-21 19:06:31 UTC
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.