Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.

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.