Bug 249163

Summary: mkinitrd silently ignores missing modules
Product: [Fedora] Fedora Reporter: Eric Lee <eric__lee>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED NEXTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 7CC: jamundso
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2007-09-11 20:45:24 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 Eric Lee 2007-07-21 19:24:09 UTC
Description of problem
/sbin/mkinitrd silently ignores bad module names

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

How reproducible:
100%

Steps to Reproduce:
1. execute: mkinitrd --with=fake-module /tmp/junk `uname -r`
  
Actual results:
new /tmp/junk is generated with no complaint about missing module

Expected results:
should fail with message:
No module fake-module found for kernel 2.6.21-1.3228.fc7, aborting.

Additional info:

/sbin/mkinitrd: LINE 307: double-quotes missing around variable:

 if [ ! -f $fmPath ]; then

fix:

 if [ ! -f "$fmPath" ]; then

Comment 1 Peter Jones 2007-09-14 19:33:17 UTC
*** Bug 226709 has been marked as a duplicate of this bug. ***