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.
This commit is contained in:
parent
6bbc26ef9f
commit
22e5e135e1
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user