Bug 17106 - --fstab option broken in /sbin/mkinitrd
--fstab option broken in /sbin/mkinitrd
Status: CLOSED CURRENTRELEASE
Product: Red Hat Linux
Classification: Retired
Component: mkinitrd (Show other bugs)
6.2
i386 Linux
low Severity low
: ---
: ---
Assigned To: Matt Wilson
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2000-08-30 09:25 EDT by Denice
Modified: 2008-05-01 11:37 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2000-08-30 09:25:03 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Denice 2000-08-30 09:25:01 EDT
The mkinitrd script does not honour the --fstab option.  I have appended a
patch.  Here
is the offending ouput with 'set -x':

# mkbootdisk --verbose --mkinitrdargs --fstab=/tmp/fstab 2.2.16-3
 .....
 + grep ^/dev/md --fstab=/tmp/fstab
  grep: unrecognized option `--fstab=/tmp/fstab'
  Usage: grep [OPTION]... PATTERN [FILE]...
  Try `grep --help' for more information.

# rpm -qf /sbin/mkinitrd
mkinitrd-2.4.1-2 

--- mkinitrd    Tue Feb 29 22:10:14 2000
+++ mkinitrd.new        Wed Aug 30 15:15:07 2000
@@ -96,7 +96,7 @@
     case $1 in
        --fstab*)
            if echo $1 | grep '=' >/dev/null ; then
-               fstab=`echo $1 | sed 's/^--with=//'`
+               fstab=`echo $1 | sed 's/^--fstab=//'`
            else
                fstab=$2
                shift
Comment 1 Erik Troan 2002-05-20 22:51:29 EDT
been fixed for a while -- don't know exactly when

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