aboutsummaryrefslogtreecommitdiff
path: root/etc/rc.diskless2
diff options
context:
space:
mode:
authorRobert Watson <rwatson@FreeBSD.org>2001-12-26 17:18:39 +0000
committerRobert Watson <rwatson@FreeBSD.org>2001-12-26 17:18:39 +0000
commit22e5e135e17e694df565e68ca6911a85e0685339 (patch)
tree02e7e836b2882e93a2f4953ce0ffbd6f83985c42 /etc/rc.diskless2
parent6bbc26ef9f831c0a0eda7eb7264f21beb1567859 (diff)
Notes
Diffstat (limited to 'etc/rc.diskless2')
-rw-r--r--etc/rc.diskless24
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/rc.diskless2 b/etc/rc.diskless2
index 4c6a8c26d370..4fb477c76146 100644
--- a/etc/rc.diskless2
+++ b/etc/rc.diskless2
@@ -78,6 +78,10 @@ mount -a # chown and chgrp are in /usr
# If /tmp is a symlink, assume it points to somewhere writable, like
# /var/tmp, otherwise, use a small memory filesystem for /tmp.
+#
+# XXX: mtree runs too early to create any directories needed in /tmp,
+# so if /var/tmp == /tmp, then you don't get a vi.recover.
+#
if [ ! -h /tmp ]; then
mount_md ${tmpsize:=20480} /tmp 2
chmod 01777 /tmp