Date: Tue, 20 Jan 2004 10:09:53 +0100 From: Ruben de Groot <mail25@bzerk.org> To: Poul-Henning Kamp <phk@phk.freebsd.dk> Cc: current@freebsd.org Subject: Re: REVIEW: cleanvar.patch Message-ID: <20040120090953.GA25898@ei.bzerk.org> In-Reply-To: <98643.1074545359@critter.freebsd.dk> References: <98643.1074545359@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Jan 19, 2004 at 09:49:19PM +0100, Poul-Henning Kamp typed: [...] > +# If we do not have a writable /var, create a memory > +# filesystem for /var. We don't have /usr yet so ^^^^^^^^^^^^^^^^^^^ > +# use mkdir instead of touch to test. We want mount > +# to record its mounts so we have to make sure /var/db > +# exists before doing the mount -a. > +# > + > +if (/bin/mkdir /var/.diskless 2> /dev/null); then > + rmdir /var/.diskless > +else > + mkdir -p /var > + mount_md ${varsize:=32m} /var > +fi > + > +# Populate /var if it looks empty > +if [ -d /var/run -a -d /var/db -a -d /var/empty ] ; then > + true > +else > + /usr/sbin/mtree -deU -f /etc/mtree/BSD.var.dist -p /var > /dev/null 2>&1 ^^^^^^^^^^^^^^^ Where did we get /usr ? > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040120090953.GA25898>