#!/sbin/sh
#
# Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T.
# All rights reserved.
#
# THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
# The copyright notice above does not evidence any
# actual or intended publication of such source code.
#
# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
#ident	"@(#)buildmnttab	1.17	06/06/12 SMI"

# Mount other file systems to be available in single user mode. Currently,
# these are /var, /var/adm, and /var/run. A change here will require a
# modification to the following scripts (and documentation): /sbin/mountall,
# /sbin/umountall, /sbin/rc0, and /sbin/rc6.

for fs in /var /var/adm; do
	exec < $vfstab; readvfstab $fs
	if [ -n "$mountp" ]; then
		checkfs $fsckdev $fstype $mountp
		if [ "x$mntopts" != x- ]; then
			/sbin/mount -o $mntopts $mountp
		else
			/sbin/mount $mountp
		fi
	fi
done

/sbin/mount -F tmpfs swap /var/run
