summaryrefslogtreecommitdiffstats
path: root/etc/rc.diskless2
diff options
context:
space:
mode:
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 4c6a8c2..4fb477c 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
OpenPOWER on IntegriCloud