From owner-freebsd-bugs Sun Apr 15 9:10:11 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6700837B496 for ; Sun, 15 Apr 2001 09:10:06 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f3FGA6736232; Sun, 15 Apr 2001 09:10:06 -0700 (PDT) (envelope-from gnats) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by hub.freebsd.org (Postfix) with ESMTP id D900137B422 for ; Sun, 15 Apr 2001 09:02:51 -0700 (PDT) (envelope-from marck@woozle.rinet.ru) Received: (from marck@localhost) by woozle.rinet.ru (8.11.2/8.11.2) id f3FG2mi51226; Sun, 15 Apr 2001 20:02:48 +0400 (MSD) (envelope-from marck) Message-Id: <200104151602.f3FG2mi51226@woozle.rinet.ru> Date: Sun, 15 Apr 2001 20:02:48 +0400 (MSD) From: marck@rinet.ru Reply-To: marck@rinet.ru To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: bin/26597: cosmetic patch to /etc/rc (mounting nested NFS partitions) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >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