From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3)
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):
Steps to Reproduce:
1. Be very, very tired or not paying attention
2. rpm -e <kernel version> (where kernel version matches current
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
Internal RFE bug #136702 entered; will be considered for future releases.
*** This bug has been marked as a duplicate of 136702 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.