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 | |
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')
-rw-r--r-- | etc/rc.d/diskless | 4 | ||||
-rw-r--r-- | etc/rc.d/resolv | 4 | ||||
-rw-r--r-- | etc/rc.d/tmp | 4 | ||||
-rw-r--r-- | etc/rc.d/var | 4 | ||||
-rw-r--r-- | etc/rc.diskless2 | 4 |
5 files changed, 20 insertions, 0 deletions
diff --git a/etc/rc.d/diskless b/etc/rc.d/diskless index 1c2e0c6..229a82e 100644 --- a/etc/rc.d/diskless +++ b/etc/rc.d/diskless @@ -78,6 +78,10 @@ if [ -d /conf/default/etc ]; then fi # +# XXX make sure to create one dir for each printer as requested by lpd +# + +# If /tmp is a symlink, assume it points to somewhere writable, like # /var/tmp, otherwise, use a small memory filesystem for /tmp. mount_md ${tmpsize:=20480} /tmp 2 # XXX: mtree runs too early to create any directories needed in /tmp, diff --git a/etc/rc.d/resolv b/etc/rc.d/resolv index 1c2e0c6..229a82e 100644 --- a/etc/rc.d/resolv +++ b/etc/rc.d/resolv @@ -78,6 +78,10 @@ if [ -d /conf/default/etc ]; then fi # +# XXX make sure to create one dir for each printer as requested by lpd +# + +# If /tmp is a symlink, assume it points to somewhere writable, like # /var/tmp, otherwise, use a small memory filesystem for /tmp. mount_md ${tmpsize:=20480} /tmp 2 # XXX: mtree runs too early to create any directories needed in /tmp, diff --git a/etc/rc.d/tmp b/etc/rc.d/tmp index 1c2e0c6..229a82e 100644 --- a/etc/rc.d/tmp +++ b/etc/rc.d/tmp @@ -78,6 +78,10 @@ if [ -d /conf/default/etc ]; then fi # +# XXX make sure to create one dir for each printer as requested by lpd +# + +# If /tmp is a symlink, assume it points to somewhere writable, like # /var/tmp, otherwise, use a small memory filesystem for /tmp. mount_md ${tmpsize:=20480} /tmp 2 # XXX: mtree runs too early to create any directories needed in /tmp, diff --git a/etc/rc.d/var b/etc/rc.d/var index 1c2e0c6..229a82e 100644 --- a/etc/rc.d/var +++ b/etc/rc.d/var @@ -78,6 +78,10 @@ if [ -d /conf/default/etc ]; then fi # +# XXX make sure to create one dir for each printer as requested by lpd +# + +# If /tmp is a symlink, assume it points to somewhere writable, like # /var/tmp, otherwise, use a small memory filesystem for /tmp. mount_md ${tmpsize:=20480} /tmp 2 # XXX: mtree runs too early to create any directories needed in /tmp, 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 |