Bug 209874 - at some situations mkinitd fail to create image
Summary: at some situations mkinitd fail to create image
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: mkinitrd
Version: 4.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Brian Lane
QA Contact: Kevin Baker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-10-07 09:47 UTC by Alex Lyashkov
Modified: 2014-12-01 23:08 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-07-27 17:59:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Alex Lyashkov 2006-10-07 09:47:53 UTC
Description of problem:
at some situations mkinitd fail to create image with don`t find ide-disk module.

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

How reproducible:
100%

Steps to Reproduce:
1. has box without connected ide drivers
2. try to create initrd image.
  
Actual results:
fail

Expected results:
create initrd image

Additional info:
posible fix.
# diff -u mkinitrd.old mkinitrd
--- mkinitrd.old        2006-10-07 12:43:19.000000000 -0400
+++ mkinitrd    2006-10-07 12:44:15.000000000 -0400
@@ -418,8 +418,8 @@
 fi

 # If we have ide devices and module ide, do the right thing
-ide=/proc/ide/ide*
-if [ -n "$ide" ]; then
+ls '/proc/ide/ide*' >& /dev/null
+if [ $? -eq 0 ]; then
     for n in $PREIDEMODS; do
     findmodule $n
     done

Comment 1 Alex Lyashkov 2006-10-07 09:49:03 UTC
ps. i found this bug at trustix linux but seems same bug exist at RH EL3/RH EL/4.


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