Bug 203242

Summary: PATCH: fix /sbin/mkinitrd --without-usb option
Product: [Fedora] Fedora Reporter: Hans de Goede <hdegoede>
Component: mkinitrdAssignee: Peter Jones <pjones>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: chabotc
Target Milestone: ---Keywords: EasyFix, Patch
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2006-09-14 15:47:59 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:
Attachments:
Description Flags
PATCH: fixing --without-usb none

Description Hans de Goede 2006-08-19 18:34:38 UTC
/sbin/mkinitrd contains a variable "withusb" which contains either "1" or "0",
however this variable is tested like this:
if [ -n "$withusb" ]; then

Which is always true because "withusb" always is a non zero lenght string, the
correct test would be:
if [ $withusb -ne 0 ]; then

The attached patch fixes this.

Comment 1 Hans de Goede 2006-08-19 18:34:40 UTC
Created attachment 134513 [details]
PATCH: fixing --without-usb

Comment 2 Peter Jones 2006-09-14 15:47:59 UTC
Applied in CVS, thanks.