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 - PATCH: fix /sbin/mkinitrd --without-usb option
Summary: PATCH: fix /sbin/mkinitrd --without-usb option
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: mkinitrd
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Peter Jones
QA Contact: David Lawrence
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-08-19 18:34 UTC by Hans de Goede
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-09-14 15:47:59 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
PATCH: fixing --without-usb (deleted)
2006-08-19 18:34 UTC, Hans de Goede
no flags Details | Diff

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.


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