Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Mar 2002 12:52:47 -0800
From:      "David O'Brien" <obrien@FreeBSD.ORG>
To:        Brooks Davis <brooks@one-eyed-alien.net>
Cc:        current@FreeBSD.ORG
Subject:   Re: changes to rc.diskless*
Message-ID:  <20020302125247.A58520@dragon.nuxi.com>
In-Reply-To: <20020301150428.A5746@Odin.AC.HMC.Edu>; from brooks@one-eyed-alien.net on Fri, Mar 01, 2002 at 03:04:28PM -0800
References:  <20020221200050.A78243@dragon.nuxi.com> <20020301150428.A5746@Odin.AC.HMC.Edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Mar 01, 2002 at 03:04:28PM -0800, Brooks Davis wrote:
> -# If /tmp is a symlink, assume it points to somewhere writable, like
> -# /var/tmp, otherwise, use a small memory filesystem for /tmp.
> +# If /tmp is not writable, 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
> +if /usr/bin/touch /tmp/_writable_test; then
> +	rm /tmp/_writable_test
> +else
>  	mount_md ${tmpsize:=64m} /tmp 2
>  	chmod 01777 /tmp
>  fi

I don't like this part -- because I use RW NFS mounted / (for sparc64
development), but I DO want a MFS /tmp as there is no need to do this
over the network.

Which just goes to show that your tests are not suffient.  Full rc.conf
knobs should be used instead.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020302125247.A58520>