Bug 137999

Summary: Problem with postinstall script setting up new kernel
Product: [Fedora] Fedora Reporter: Nathan G. Grennan <redhat-bugzilla>
Component: kernelAssignee: Dave Jones <davej>
Status: CLOSED CURRENTRELEASE QA Contact: Brian Brock <bbrock>
Severity: medium Docs Contact:
Priority: medium    
Version: 2CC: pfrields, scop, wtogami
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2004-11-04 15:31:50 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 Nathan G. Grennan 2004-11-03 18:19:19 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)

Description of problem:
Here is something I saw while upgrading a FC2 box to the test kernel. No
entry in /etc/grub.conf. Not initrd in /boot. Manually running "new-
kernel-pkg --mkinitrd --depmod --install 2.6.9-1.1_FC2" worked.

Running test transaction:
Test transaction complete, Success!
kernel 100 % done 1/5
Usage: new-kernel-pkg [-v] [--mkinitrd] [--rminitrd]
       [--initrdfile=<initrd-image>] [--depmod] [--rmmoddep]
       [--kernel-args=<args>] [--banner=<banner>]
       [--make-default] <--install | --remove> <kernel-version>
       (ex: new-kernel-pkg --mkinitrd --depmod --install 2.4.7-2)
tcpdump 100 % done 2/5
libpcap 100 % done 3/5
Completing update for tcpdump  - 4/5
Completing update for libpcap  - 5/5
Kernel Updated/Installed, checking for bootloader
Grub found - making this kernel the default
Installed:  kernel 2.6.9-1.1_FC2.i686
Updated:  tcpdump 14:3.8.2-6.FC2.1.i386 libpcap 14:0.8.3-6.FC2.1.i386
Transaction(s) Complete

Version-Release number of selected component (if applicable):
kernel-2.6.9-1.1_FC2

How reproducible:
Always

Steps to Reproduce:
1. yum -y update
    

Actual Results:  Kernel package is installed but not setup

Expected Results:  Kernel package is installed and is setup

Additional info:

Comment 1 Nathan G. Grennan 2004-11-03 18:36:47 UTC
Same results on another box which did an automatic update via yum's
cron job.

Comment 2 Nathan G. Grennan 2004-11-03 18:55:48 UTC
I ran "rpm -q --scripts -p kernel-2.6.9-1.1_FC2.i686.rpm" and found
the command below in the preinstall scriptlet. The --package kernel is
what causes the problem.

/sbin/new-kernel-pkg --package kernel --mkinitrd --depmod --install
2.6.9-1.1_FC2 

Comment 3 Nathan G. Grennan 2004-11-03 18:58:32 UTC
I ran "rpm -q mkinitrd" and it outputed "mkinitrd-3.5.22-1".

Comment 4 Dave Jones 2004-11-03 19:12:42 UTC
yeah, that crept in by mistake.  I'll nuke it, and rebuild another test kernel.
You shouldnt need to update your mkinitrd.


Comment 5 Dave Jones 2004-11-03 22:03:16 UTC
2.6.9-1.2_FC2 should have this fixed.


Comment 6 Dave Jones 2004-11-03 22:03:40 UTC
*** Bug 138021 has been marked as a duplicate of this bug. ***

Comment 7 Nathan G. Grennan 2004-11-04 15:31:50 UTC
Tested 2.6.9-1.2_FC2 and it works.