diff options
author | rwatson <rwatson@FreeBSD.org> | 2001-12-26 17:18:39 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2001-12-26 17:18:39 +0000 |
commit | feecfbabe33fe8ef15c2b800451a01c960754be3 (patch) | |
tree | 02e7e836b2882e93a2f4953ce0ffbd6f83985c42 /etc/rc.diskless2 | |
parent | bedbb443300070be4feac72118beec936cf41afb (diff) | |
download | FreeBSD-src-feecfbabe33fe8ef15c2b800451a01c960754be3.zip FreeBSD-src-feecfbabe33fe8ef15c2b800451a01c960754be3.tar.gz |
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.
Diffstat (limited to 'etc/rc.diskless2')
-rw-r--r-- | etc/rc.diskless2 | 4 |
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 |