Bug 99537 - up2date -u -f kernel deletes running kernel
up2date -u -f kernel deletes running kernel
Status: CLOSED NOTABUG
Product: Red Hat Linux
Classification: Retired
Component: up2date (Show other bugs)
7.3
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Adrian Likins
Fanny Augustin
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2003-07-21 15:05 EDT by Larry Fahnoe
Modified: 2007-04-18 12:55 EDT (History)
2 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2003-07-21 17:01:08 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Larry Fahnoe 2003-07-21 15:05:22 EDT
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 17:01:08 EDT
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

Note You need to log in before you can comment on or make changes to this bug.