REVIEW: cleanvar.patch
Ruben de Groot
mail25 at bzerk.org
Tue Jan 20 01:08:09 PST 2004
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"
More information about the freebsd-current
mailing list