when booting a gentoo system over nfs checkroot fails since you can't fsck an nfsmount. Reproducible: Always Steps to Reproduce: 1. build yourself a chrooted gentoo install 2. nfs-export it 3. build a nfsroot enabled kernel 4. put it on a floppy 5. take your spare box, and boot it over nfs Actual Results: checkroot fails Expected Results: to not check the root filesystem since its not local should be easy to detect; I'll attache a proper fix once I get around to it.
Easy: -- if mount -vf -o remount / | \ awk '{ if ($5 !~ /nfs|ncpfs|coda/) exit 0; else exit 1; }' then fsck .... fi --
any update on this ? ive hit it when playing around with my dreamcast :)
Created attachment 35524 [details, diff] actual patch file adding the suggested fix this adds the suggested check to checkroot. someone please apply this. checkroot has been whining about fsck.nfs missing forever and i've just been ignoring it.
could this please be placed in baselayout? one further issue with it, under 2.6 kernels. if you are using an fstab without an / entry as you are using / from nfsroot, automounted by the kernel. Change ----- if mount -vf -o remount / 2> /dev/null | awk '{ if ($6 ~ /rw/) exit 0; else exit 1; }' then ----- To: ----- if egrep '/' -w /proc/mounts | egrep -v rootfs | egrep -w rw then einfo "Root filesystem already mounted read/write" elif mount -vf -o remount / 2> /dev/null | \ and change: mount -f / into: awk '$2 == "/" && $3 != "rootfs" {print}' /proc/mounts >>/etc/mtab
now in cvs
*** Bug 40202 has been marked as a duplicate of this bug. ***