From owner-freebsd-bugs Mon Apr 15 2: 0:30 2002 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 63E4037B41A for ; Mon, 15 Apr 2002 02:00:05 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g3F905452027; Mon, 15 Apr 2002 02:00:05 -0700 (PDT) (envelope-from gnats) Received: from insomnia.powertech.no (insomnia.powertech.no [195.159.0.182]) by hub.freebsd.org (Postfix) with ESMTP id BE96A37B41C for ; Mon, 15 Apr 2002 01:59:45 -0700 (PDT) Received: (from frode@localhost) by insomnia.powertech.no (8.11.6/8.11.0) id g3F8xis30291; Mon, 15 Apr 2002 10:59:44 +0200 Message-Id: <200204150859.g3F8xis30291@insomnia.powertech.no> Date: Mon, 15 Apr 2002 10:59:44 +0200 From: Frode Nordahl Reply-To: Frode Nordahl To: FreeBSD-gnats-submit@FreeBSD.org Cc: Frode Nordahl X-Send-Pr-Version: 3.113 Subject: conf/37091: rc script fails if there are smbfs filesystems in /etc/fstab Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 37091 >Category: conf >Synopsis: rc script fails if there are smbfs filesystems in /etc/fstab >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: Mon Apr 15 02:00:05 PDT 2002 >Closed-Date: >Last-Modified: >Originator: Frode Nordahl >Release: FreeBSD 4.5-STABLE i386 >Organization: >Environment: System: FreeBSD ws24.ns5.powertech.no 4.5-STABLE FreeBSD 4.5-STABLE #0: Mon Mar 25 09:40:01 CET 2002 root@ws24.ns5.powertech.no:/usr/obj/usr/src/sys/GENERIC i386 >Description: SMBFS has been included in the base system, and should also be supported by the startup scripts. If you include a smbfs file system in /etc/fstab without the "noauto" option, the rc script tries to mount before the network is up. I have included a patch to treat smbfs the same way as NFS file systems, delay mount time until network is up. >How-To-Repeat: Add a smbfs mountpoint to your /etc/fstab, reboot. >Fix: --- rc_smbfs.patch begins here --- --- /usr/src/etc/rc Mon Apr 15 06:00:45 2002 +++ /etc/rc Mon Apr 15 10:33:34 2002 @@ -212,8 +212,8 @@ if [ -n "${diskless_mount}" -a -r "${diskless_mount}" ]; then sh ${diskless_mount} else -# otherwise mount everything except nfs filesystems. - mount -a -t nonfs +# otherwise mount everything except nfs and smb filesystems. + mount -a -t nonfs,nosmbfs fi case $? in @@ -326,6 +326,16 @@ *mount_nfs*) echo -n 'Mounting NFS file systems:' mount -a -t nfs + echo '.' + ;; +esac + +# Mount SMB filesystems if present in /etc/fstab +# +case "`mount -d -a -t smbfs 2> /dev/null`" in +*mount_smbfs*) + echo -n 'Mounting SMB file systems:' + mount -a -t smbfs echo '.' ;; esac --- rc_smbfs.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message