From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.2) Gecko/20021203 Description of problem: rc.sysinit tries to execute fsck.nfs if the root filesystem is on NFS. The check for an NFS root filesystem is incorrect in rc.sysinit because a Linux 2.4.x kernel has *two* entries in /proc/mounts for / e.g.: rootfs / rootfs rw 0 0 /dev/root / ext3 rw 0 0 To correct this behaviour apply the following patch: --- rc.sysinit.orig 2003-01-24 19:12:37.000000000 +0100 +++ rc.sysinit 2003-01-24 19:19:54.000000000 +0100 @@ -230,7 +230,7 @@ _RUN_QUOTACHECK=0 -ROOTFSTYPE=`awk '/ \/ / { print $3 }' /proc/mounts` +ROOTFSTYPE=`awk '/ \/ / && ($3 !~ /rootfs/) { print $3 }' /proc/mounts` if [ -z "$fastboot" -a "X$ROOTFSTYPE" != "Xnfs" ]; then STRING=$"Checking root filesystem" @@ -302,7 +302,7 @@ fi # Remount the root filesystem read-write. -state=`awk '/(^\/dev\/root| \/ )/ { print $4 }' /proc/mounts` +state=`awk '/ \/ / && ($3 !~ /rootfs/) { print $4 }' /proc/mounts` [ "$state" != "rw" ] && \ action $"Remounting root filesystem in read-write mode: " mount -n -o remount,rw / Version-Release number of selected component (if applicable): initscripts-6.95-1 How reproducible: Always Steps to Reproduce: 1. Rebuild linux kernel for root filesystem on NFS 2. Boot system Actual Results: fsck.nfs: No such file or directory Expected Results: No file system check for NFS root filesystem. Additional info:
Created attachment 89590 [details] Patch to correct the bug.
Comment on attachment 89590 [details] Patch to correct the bug. --- rc.sysinit.orig 2003-01-24 19:12:37.000000000 +0100 +++ rc.sysinit 2003-01-24 19:19:54.000000000 +0100 @@ -230,7 +230,7 @@ _RUN_QUOTACHECK=0 -ROOTFSTYPE=`awk '/ \/ / { print $3 }' /proc/mounts` +ROOTFSTYPE=`awk '/ \/ / && ($3 !~ /rootfs/) { print $3 }' /proc/mounts` if [ -z "$fastboot" -a "X$ROOTFSTYPE" != "Xnfs" ]; then STRING=$"Checking root filesystem" @@ -302,7 +302,7 @@ fi # Remount the root filesystem read-write. -state=`awk '/(^\/dev\/root| \/ )/ { print $4 }' /proc/mounts` +state=`awk '/ \/ / && ($3 !~ /rootfs/) { print $4 }' /proc/mounts` [ "$state" != "rw" ] && \ action $"Remounting root filesystem in read-write mode: " mount -n -o remount,rw /
Fixed, will be in next build (7.05-1)