Bug 65249 - mkinird doesn't work with /etc/fstab.
Summary: mkinird doesn't work with /etc/fstab.
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: mkinitrd
Version: 7.3
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Matt Wilson
QA Contact: David Lawrence
URL:
Whiteboard:
: 66895 97084 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2002-05-20 22:04 UTC by hjl
Modified: 2007-04-18 16:42 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2002-05-20 22:05:15 UTC
Embargoed:


Attachments (Terms of Use)
A patch to support comments in /etc/fstab (535 bytes, patch)
2002-05-20 22:05 UTC, hjl
no flags Details | Diff
fix for comment intolerance: also kill two vars with one awk (701 bytes, patch)
2002-06-21 03:25 UTC, Curtis Doty
no flags Details | Diff

Description hjl 2002-05-20 22:04:18 UTC
My fstab has

#LABEL=/                 /                       ext3    defaults        1 1
/dev/sda1               /                       ext3    defaults        1 1
#LABEL=/export           /export                 ext3    defaults        1 2
/dev/sdc1               /export                 ext3    defaults        1 2
/dev/sda6               /export/redhat          ext3    defaults        1 2
/dev/sdb1               /export/redhat/mirror   ext3    defaults        1 2
/dev/fd0                /mnt/floppy             auto    noauto,owner    0 0
#LABEL=/usr              /usr                    ext3    defaults        1 2
/dev/sda2                /usr                    ext3    defaults        1 2
#LABEL=/var              /var                    ext3    defaults        1 2
/dev/sda5                /var                    ext3    defaults        1 2
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /dev/pts                devpts  gid=5,mode=620  0 0
/dev/sda3               swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,kudzu,ro 0 
0
/dev/cdrom1             /mnt/cdrom1             iso9660 noauto,owner,kudzu,ro 0 
0

Upgrade to 7.3 made my machine panic during boot.

Comment 1 hjl 2002-05-20 22:05:09 UTC
Created attachment 58045 [details]
A patch to support comments in /etc/fstab

Comment 2 Erik Troan 2002-05-21 01:18:11 UTC
Yikes! Hard to believe this has been in there so long. Almost the same fix applied:

  rootdev=$(awk '/^[ \t]*[^#]/ { if ($2 == "/") { print $1; }}' $fstab)

Let me (ewt -- mail me directly) know if you see any problems with
this alternate fix.

Comment 3 Pete Zaitcev 2002-06-19 19:09:12 UTC
*** Bug 66895 has been marked as a duplicate of this bug. ***

Comment 4 Curtis Doty 2002-06-21 03:23:50 UTC
I got so excited with this bugly I fixed it before checking bugzilla. Zoinks. 
Follows is alternate patch with less cruft.

Comment 5 Curtis Doty 2002-06-21 03:25:28 UTC
Created attachment 61987 [details]
fix for comment intolerance: also kill two vars with one awk

Comment 6 Pete Zaitcev 2002-08-06 23:24:03 UTC
mkinitrd-3.4.20-1 seems to work fine, installs on 7.3 fine
(I did rpm -U).


Comment 7 Jeremy Katz 2003-06-11 03:33:08 UTC
*** Bug 97084 has been marked as a duplicate of this bug. ***


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