Date: Sun, 15 Apr 2001 20:02:48 +0400 (MSD) From: marck@rinet.ru To: FreeBSD-gnats-submit@freebsd.org Subject: bin/26597: cosmetic patch to /etc/rc (mounting nested NFS partitions) Message-ID: <200104151602.f3FG2mi51226@woozle.rinet.ru>
next in thread | raw e-mail | index | archive | help
>Number: 26597 >Category: bin >Synopsis: cosmetic patch to /etc/rc (mounting nested NFS partitions) >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Apr 15 09:10:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Dmitry Morozovsky >Release: FreeBSD 4.2-STABLE i386 >Organization: Cronyx Plus Ltd. >Environment: Automatic mount of NFS filesystems with at lease one mount point inside NFS tree >Description: When mounting automatically nested NFS filesystems, such as at my system: xxx:/pub on /ar/pub (nfs, nodev, nosuid, read-only) xxx:/pub/.1 on /ar/pub/.1 (nfs, nodev, nosuid, read-only) xxx:/pub/.2 on /ar/pub/.2 (nfs, nodev, nosuid, read-only) /etc/rc complaints about ono-existing directory when testing. The simpleast way to avoid these complaints is redirect testing `mount -d' to /dev/null >How-To-Repeat: Add e.g. /pub and /pub/dubdir to your /etc/fstab pointing to real NFS available FSes. After reboot complaint about "non-existing directory" will be issued just before the sentense "Mounting NFS file systems:" >Fix: --- src/etc/rc.orig Thu Feb 8 16:27:05 2001 +++ src/etc/rc Sat Feb 10 18:56:21 2001 @@ -251,7 +251,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 >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200104151602.f3FG2mi51226>