From 592916e5d37e7f92127e904a834cc86c2708a44f Mon Sep 17 00:00:00 2001 From: otto <> Date: Sun, 12 Mar 2006 20:07:48 +0000 Subject: [PATCH] Use the new -s flag to mount the /usr and /var partitions. Avoids doubly mounted mfs partitions. Also, at the end of the mount dance, try mount all partitions, not just nfs partitions. Handles a case where local paritition mounted inside a nfs partition where not mounted by rc (/usr on nfs with a local /usr/obj, for example). ok deraadt@ henning@ --- src/etc/rc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/etc/rc b/src/etc/rc index 9ae32ba1..392499a4 100644 --- a/src/etc/rc +++ b/src/etc/rc @@ -1,4 +1,4 @@ -# $OpenBSD: rc,v 1.277 2006/01/12 21:54:15 deraadt Exp $ +# $OpenBSD: rc,v 1.278 2006/03/12 20:07:48 otto Exp $ # System startup script run by init on autoboot # or after single-user. @@ -254,8 +254,8 @@ if [ X"${pf}" != X"NO" ]; then fi fi -mount /usr >/dev/null 2>&1 -mount /var >/dev/null 2>&1 +mount -s /usr >/dev/null 2>&1 +mount -s /var >/dev/null 2>&1 # if there's no /var/db/host.random, make one through /dev/urandom if [ ! -f /var/db/host.random ]; then @@ -401,7 +401,7 @@ if [ X"${ntpd_flags}" != X"NO" ]; then fi echo '.' -mount -a -t nfs +mount -a swapctl -A -t noblk