minor change to /etc/rc.d/var
Brooks Davis
brooks at one-eyed-alien.net
Sun May 29 14:48:47 PDT 2005
On Sun, May 29, 2005 at 01:24:01AM +0400, Boris Samorodov wrote:
> Hi!
>
>
> What do you think in minor change to /etc/rc.d/var:
>
Content-Description: patch to /etc/rc.d/var
> --- var.orig Sun May 29 01:05:47 2005
> +++ var Sun May 29 01:06:12 2005
> @@ -28,7 +28,7 @@
> #
>
> # PROVIDE: var
> -# REQUIRE: mountcritlocal
> +# REQUIRE: mountcritremote
>
> . /etc/rc.subr
>
>
> If there are no NFS mountpoints at /etc/fstab, both variants are
> equal. But if there are some and the host (which is booting) is a
> diskless station, the change is critical. I was success in booting the
> diskless station (from server with FreeBSD-5.4-RELEASE-p1) only after
> applying this patch.
>
> I do have at rc.conf.local:
> -----
> varmfs="YES"
> populate_var="YES"
> -----
>
> But the diskless station didn't boot. It stopped booting with multiple
> errors, which showed that /var was not mounted. Only the patch did the
> right thing.
/var should be mounted before NFS mounts are done if at all possible
because it is where current mounts are recorded. There are changes in
-current to remove all the /usr requirements except for mtree and to
try to mount /usr if mtree is not yet available. A merge should happen
before 5.5.
-- Brooks
--
Any statement of the form "X is the one, true Y" is FALSE.
PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20050529/16b72eff/attachment.bin
More information about the freebsd-stable
mailing list