Bug 99537

Summary: up2date -u -f kernel deletes running kernel
Product: [Retired] Red Hat Linux Reporter: Larry Fahnoe <fahnoe>
Component: up2dateAssignee: Adrian Likins <alikins>
Status: CLOSED NOTABUG QA Contact: Fanny Augustin <fmoquete>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: gafton, mihai.ibanescu
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2003-07-21 21:01:08 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 Larry Fahnoe 2003-07-21 19:05:22 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624

Description of problem:
Currently running kernel is 2.4.20-18.7, also have 2.4.20-13.7 installed.  I
used the command "up2date -u -f kernel" to get the new kernel.  I am used to
doing this and having the new kernel installed, but the running kernel is
preserved.  After up2date grabbed the new kernel, I deleted the previous kernel
(rpm -e kernel-2.4.20-13.7).  After these two commands completed, I was left
with only the most recent kernel, the running kernel had been deleted

--Larry

Following are the details:

[root@zeus root]# uname -a
Linux zeus.fahnoetech.com 2.4.20-18.7 #1 Thu May 29 08:32:50 EDT 2003 i686 unknown
[root@zeus root]# rpm -qa|grep kernel
kernel-2.4.20-18.7
kernel-utils-2.4-7.4
kernel-2.4.20-13.7
[root@zeus root]# up2date -l

Fetching package list for channel: redhat-linux-i386-7.3...
########################################

Fetching Obsoletes list for channel: redhat-linux-i386-7.3...
########################################

Fetching rpm headers...

Name                                    Version        Rel
----------------------------------------------------------

The following Packages were marked to be skipped by your configuration:

Name                                    Version        Rel  Reason
-------------------------------------------------------------------------------
kernel                                  2.4.20         19.7 Pkg name/pattern

None of the packages you requested were found, or they are already updated.
[root@zeus root]# up2date -u -f kernel

Fetching package list for channel: redhat-linux-i386-7.3...
########################################

Fetching Obsoletes list for channel: redhat-linux-i386-7.3...
########################################

Testing package set / solving RPM inter-dependencies...
########################################
kernel-2.4.20-19.7.i686.rpm ########################## Done.
Preparing...                ########################################### [100%]

Installing...
   1:kernel                 ########################################### [100%]
[root@zeus root]#
[root@zeus root]# rpm -qa|grep kernel
kernel-2.4.20-18.7
kernel-2.4.20-19.7
kernel-utils-2.4-7.4
kernel-2.4.20-13.7
[root@zeus root]# rpm -e kernel-2.4.20-13
[root@zeus root]# cd /boot
[root@zeus boot]# ls -l
total 4801
-rw-r--r--    1 root     root        44753 Jul 15 12:56 config-2.4.20-19.7
-rw-r--r--    1 root     root       257708 Jul 21 13:15 initrd-2.4.20-19.7.img
-rw-r--r--    1 root     root          473 Jul 21 13:15 kernel.h
lrwxrwxrwx    1 root     root           23 Jul 21 13:15 module-info ->
module-info-2.4.20-19.7
-rw-r--r--    1 root     root        15438 Jul 15 12:56 module-info-2.4.20-19.7
lrwxrwxrwx    1 root     root           22 Jul 21 13:15 System.map ->
System.map-2.4.20-19.7
-rw-r--r--    1 root     root       505471 Jul 15 12:56 System.map-2.4.20-19.7
-rw-r--r--    1 root     root      2989435 Jul 15 12:56 vmlinux-2.4.20-19.7
lrwxrwxrwx    1 root     root           19 Jul 21 13:15 vmlinuz ->
vmlinuz-2.4.20-19.7
-rw-r--r--    1 root     root      1073440 Jul 15 12:56 vmlinuz-2.4.20-19.7
[root@zeus boot]# ls -l /lib/modules/
total 2
drwxr-xr-x    4 root     root         1024 Jun  3 08:50 2.4.20-18.7
drwxr-xr-x    4 root     root         1024 Jul 21 13:15 2.4.20-19.7
[root@zeus boot]# rpm -qa|grep kernel
kernel-2.4.20-18.7
kernel-2.4.20-19.7
kernel-utils-2.4-7.4
[root@zeus boot]# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/md3                505508    103155    376254  22% /
/dev/md1               8681064    366056   7874032   5% /home
/dev/md2              19568284    839608  17734660   5% /usr
/dev/md0               4126976    302976   3614360   8% /var
[root@zeus boot]# grep kernel /etc/sysconfig/rhn/up2date
removeSkipList=kernel*;
pkgSkipList=kernel*;


Version-Release number of selected component (if applicable):
up2date-2.8.39-1.7.3

How reproducible:
Didn't try

Steps to Reproduce:
1. up2date -u -f kernel
2. up2date -e kernel-2.4.20-13
3.
    

Actual Results:  I have only 2.4.20-19

Expected Results:  I should have had 2.4.20-18 and 2.4.20-19 installed

Additional info:

Comment 1 Larry Fahnoe 2003-07-21 21:01:08 UTC
It seems there are eggs in my beard:

Somehow (why I do not yet know) /boot was not mounted at the time I did the
up2date of the kernel, thus the new kernel was installed in the /boot directory
rather than the /boot filesystem.

--Larry