diff --git a/etc/rc.d/diskless b/etc/rc.d/diskless index 1c2e0c6a3a56..229a82ed1004 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 1c2e0c6a3a56..229a82ed1004 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 1c2e0c6a3a56..229a82ed1004 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 1c2e0c6a3a56..229a82ed1004 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 4c6a8c26d370..4fb477c76146 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