Bug 50819

Summary: mkinitrd failed to parse /etc/fstab
Product: [Retired] Red Hat Linux Reporter: hjl
Component: mkinitrdAssignee: Matt Wilson <msw>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3CC: maurizio.antillon
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-08-03 16:45:38 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
A patch none

Description hjl 2001-08-03 16:44:57 UTC
When you have

#LABEL=/                 /                       ext3    defaults        1
1
/dev/sda1               /                       ext3    defaults        1 1

in /etc/fstab, mkinitrd will put

#!/bin/nash

echo "Loading scsi_mod module"
insmod /lib/scsi_mod.o 
echo "Loading sd_mod module"
insmod /lib/sd_mod.o 
echo "Loading aic7xxx module"
insmod /lib/aic7xxx.o 
mount -t proc /proc /proc
echo Mounting /proc filesystem
echo Creating root device
mkrootdev /dev/root
echo 0x0100 > /proc/sys/kernel/real-root-dev
umount /proc
echo Mounting root filesystem
mount --ro -t ext3
ext3 /dev/root /sysroot
pivot_root /sysroot /sysroot/initrd

in linuxrc.

Comment 1 hjl 2001-08-03 16:45:33 UTC
Created attachment 26093 [details]
A patch

Comment 2 Matt Wilson 2001-08-03 16:52:48 UTC
done.