Re: REVIEW: cleanvar.patch

From: Ruben de Groot <mail25_at_bzerk.org>
Date: Tue, 20 Jan 2004 10:09:53 +0100
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_at_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_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"
Received on Tue Jan 20 2004 - 00:08:09 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:39 UTC