Bug 479270 - mkinitrd 5.1.19.6-44 fails to create initrd for kernels prior to 2.6.18-122.el5
mkinitrd 5.1.19.6-44 fails to create initrd for kernels prior to 2.6.18-122.el5
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: mkinitrd (Show other bugs)
5.3
All Linux
urgent Severity high
: rc
: ---
Assigned To: Peter Jones
Alexander Todorov
: ZStream
: 488991 (view as bug list)
Depends On:
Blocks: 496591
  Show dependency treegraph
 
Reported: 2009-01-08 10:06 EST by Olivier Fourdan
Modified: 2013-03-03 21:47 EST (History)
12 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2009-09-02 07:15:03 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)
Proposed patch (473 bytes, patch)
2009-01-08 10:06 EST, Olivier Fourdan
no flags Details | Diff

  None (edit)
Description Olivier Fourdan 2009-01-08 10:06:45 EST
Created attachment 328467 [details]
Proposed patch

Description of problem:

5.1.19.6-44 includes a fix for bug #476866 that breaks with kernel prior to 2.6.18-122.el5 which have no module dm-mem-cache dm-region_hash dm-message or dm-raid45.

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

mkinitrd-5.1.19.6-44

How reproducible:

100% reproducible

Steps to Reproduce:
1. install mkinitrd-5.1.19.6-44
2. Run kernel 2.6.18-120.el5
3. mkinitrd initrd-$(uname -r) $(uname -r)
  
Actual results:

No module dm-mem-cache found for kernel 2.6.18-120.el5, aborting.

Expected results:

initrd-2.6.18-120.el5 created

Additional info:

I think the fix for bug #476866 should have been:


   if [ "$withdmraid" == "1" ]; then
       findmodule -dm-mem-cache
       findmodule -dm-region_hash
       findmodule -dm-message
       findmodule -dm-raid45
   fi


ie use "-" which instructs findmodule not to break if the module is not present.
Comment 1 RHEL Product and Program Management 2009-01-08 10:23:23 EST
This bugzilla has Keywords: Regression.  

Since no regressions are allowed between releases, 
it is also being proposed as a blocker for this release.  

Please resolve ASAP.
Comment 7 Peter Jones 2009-04-17 15:40:29 EDT
This is fixed in mkinitrd-5.1.19.6-45 .
Comment 12 Peter Jones 2009-05-18 11:15:21 EDT
*** Bug 488991 has been marked as a duplicate of this bug. ***
Comment 15 Alexander Todorov 2009-05-26 10:33:35 EDT
On a RHEL5.2 machine I've upgraded mkinitrd to version 5.1.19.6-44 which is the one reported to fail. 

# rpm -q mkinitrd
mkinitrd-5.1.19.6-44

# uname -a
Linux dell-pe650-02.rhts.bos.redhat.com 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 i686 i386 GNU/Linux
# mkinitrd test-$(uname -r) $(uname -r)
No module dm-mem-cache found for kernel 2.6.18-92.el5, aborting.


Then upgrade mkinitrd to the latest available version.

# rpm -q mkinitrd
mkinitrd-5.1.19.6-52

# uname -a
Linux dell-pe650-02.rhts.bos.redhat.com 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 i686 i386 GNU/Linux

# mkinitrd test-$(uname -r) $(uname -r)
cat: /proc/sys/crypto/fips_enabled: No such file or directory
/sbin/mkinitrd: line 1171: [: : integer expression expected
/sbin/mkinitrd: line 1663: [: : integer expression expected
/sbin/mkinitrd: line 1748: [: : integer expression expected


# echo $?
0

The initrd image is created but notice the errors. I guess that's another bug. QE will need to re-test this once the errors are fixed. 

Tested on i386 and ia64 since customer is using ia64 in comment #9.
Comment 16 Alexander Todorov 2009-05-26 10:42:56 EDT
QE Note: please test after bug #502624 has been verified.
Comment 17 Peter Jones 2009-05-26 14:52:33 EDT
Alexander, this bug can be tested against mkinitrd-5.1.19.6-45 , as I said above in comment #7.  It need not block on 502624.
Comment 18 Alexander Todorov 2009-05-27 04:16:49 EDT
# ls -l /proc/sys/crypto/fips_enabled
ls: /proc/sys/crypto/fips_enabled: No such file or directory
# rpm -q mkinitrd
mkinitrd-5.1.19.6-53
# uname -a
Linux athlon5 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:12 EDT 2008 i686 athlon
i386 GNU/Linux
# mkinitrd test-$(uname -r) $(uname -r)
# echo $?
0
# ls -l test-2.6.18-92.el5 
-rw------- 1 root root 3118733 May 27 04:09 test-2.6.18-92.el5

initrd image is created and no error for /proc/sys/crypto/fips_enabled. Tested
on i386 and ia64 since customer is using ia64 in comment #9. Moving to VERIFIED.
Comment 24 errata-xmlrpc 2009-09-02 07:15:03 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-1345.html

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