Subject: misc/6578: mounting local filesystems in /etc/rc
To: None <>
From: None <>
List: netbsd-bugs
Date: 12/13/1998 13:44:07
>Number:         6578
>Category:       misc
>Synopsis:       Mounting /home etc could be smarter
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Dec 13 11:50:01 1998
>Originator:     Brian Grayson
	Parallel and Distributed Systems
	Electrical and Computer Engineering
	The University of Texas at Austin
>Release:        Dec. 11, 1998

	My /, /var, and /usr partitions are near full, so I made
	/var/crash a symlink to /home, which has .5Gig free.  I
	also put a large swapfile on /home.  With the current
	/etc/rc setup, crashdumps will not be saved, nor will
	swapping be turned on, because local non-critical
	filesystems aren't yet mounted at those times.

	The patch below mounts all local ffs filesystems from
	/etc/fstab right after mounting all ``critical''
	filesystems.  I could just make /home ``critical,'' but
	is there any good reason to delay mounting local ffs
	filesystems at that point in /etc/rc?
--- rc.dist     Sun Dec 13 13:26:26 1998
+++ rc  Sun Dec 13 13:27:59 1998
@@ -118,6 +118,9 @@
+##  Mount any remaining local filesystems.
+mount -a -t ffs >/dev/null 2>&1
 # Network Address Translation...
 if checkyesno ipnat && [ -f /etc/ipnat.conf ]; then
        echo 'installing NAT rules ... '