From feecfbabe33fe8ef15c2b800451a01c960754be3 Mon Sep 17 00:00:00 2001 From: rwatson Date: Wed, 26 Dec 2001 17:18:39 +0000 Subject: o Add a comment indicating that if /tmp==/var/tmp in rc.diskless2, the md device and file system creation occurs *after* mtree is run, and as such an /var/tmp/* or /tmp/* entries will be under the mountpoint (or fail) rather than appearing in the md filesystems. This prevents the creation of vi.recover, and might affect other localizations that rely on the mtree calls affecting these directories. --- etc/rc.diskless2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'etc/rc.diskless2') 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 -- cgit v1.1