summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorOtto Moerbeek <otto@cvs.openbsd.org>2006-03-12 20:07:49 +0000
committerOtto Moerbeek <otto@cvs.openbsd.org>2006-03-12 20:07:49 +0000
commit7c2227e5d736fd5384dc9b18fba2fdf02161e9e3 (patch)
tree8fb7a3caf3429ada56fe6f59a35909ba849ed144 /etc
parentbc14ed12cacbf5a7e00ffb37f00c07bd2cd0ed6f (diff)
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@
Diffstat (limited to 'etc')
-rw-r--r--etc/rc8
1 files changed, 4 insertions, 4 deletions
diff --git a/etc/rc b/etc/rc
index 9ae32ba12b5..392499a4868 100644
--- a/etc/rc
+++ b/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