From owner-freebsd-current Sat Mar 2 13:15:11 2002 Delivered-To: freebsd-current@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [66.92.13.169]) by hub.freebsd.org (Postfix) with ESMTP id 4BEB137B405 for ; Sat, 2 Mar 2002 13:15:08 -0800 (PST) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.6/8.11.1) id g22Kuqa58561; Sat, 2 Mar 2002 12:56:52 -0800 (PST) (envelope-from obrien) Date: Sat, 2 Mar 2002 12:52:47 -0800 From: "David O'Brien" To: Brooks Davis Cc: current@FreeBSD.ORG Subject: Re: changes to rc.diskless* Message-ID: <20020302125247.A58520@dragon.nuxi.com> Reply-To: obrien@FreeBSD.ORG References: <20020221200050.A78243@dragon.nuxi.com> <20020301150428.A5746@Odin.AC.HMC.Edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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