Date: Thu, 11 Jan 2001 20:51:15 +0300 (MSK) From: Dmitry Morozovsky <marck@rinet.ru> To: sheldonh@freebsd.org Cc: stable@freebsd.org Subject: /etc/rc mounting NFS bug Message-ID: <Pine.BSF.4.21.0101112043040.2149-100000@woozle.rinet.ru>
index | next in thread | raw e-mail
Hello there,
I found small bug (actually, just cosmetic) in NFS mounting in /etc/rc
(at least in 4-stable branch).
If you mount tree of NFSes, then call to `mount -d' in
# Mount NFS filesystems if present in /etc/fstab
case "`mount -d -a -t nfs`" in
*mount_nfs*)
echo -n "Mounting NFS file systems"
mount -a -t nfs
echo .
;;
esac
leads to nasty error message like
mount: /pub/.1: No such file or directory
(my NFS mounts are
kucha:/ar/pub /pub nfs ro,tcp,soft,bg,intr 0 0
kucha:/ar/pub/.1 /pub/.1 nfs ro,tcp,soft,bg,intr 0 0
kucha:/ar/pub/.2 /pub/.2 nfs ro,tcp,soft,bg,intr 0 0
)
There are some ways to fix this; however, the simplest would be
--- rc.orig Tue Sep 26 04:04:27 2000
+++ rc Thu Jan 11 20:49:35 2001
@@ -223,7 +223,7 @@
esac
# Mount NFS filesystems if present in /etc/fstab
-case "`mount -d -a -t nfs`" in
+case "`mount -d -a -t nfs 2> /dev/null`" in
*mount_nfs*)
echo -n "Mounting NFS file systems"
mount -a -t nfs
---
because at lease top mounting point directory must exist for successive
mounts ;-)
Thanks for your attention; please let me know if I miss something vital :)
Sincerely,
D.Marck [DM5020, DM268-RIPE, DM3-RIPN]
------------------------------------------------------------------------
*** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru ***
------------------------------------------------------------------------
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0101112043040.2149-100000>
