Date: Mon, 15 Apr 2002 10:59:44 +0200 From: Frode Nordahl <frode@nordahl.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: Frode Nordahl <frode@nordahl.net> Subject: conf/37091: rc script fails if there are smbfs filesystems in /etc/fstab Message-ID: <200204150859.g3F8xis30291@insomnia.powertech.no>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200204150859.g3F8xis30291>
