Re: buildworld in NFS /usr/src/ vs. automount /usr/src path

From: Steve Rikli <sr_at_genyosha.net>
Date: Fri, 14 Nov 2025 00:13:04 UTC
On Fri, Nov 14, 2025 at 12:03:41AM +0000, void wrote:
> On Thu, Nov 13, 2025 at 02:03:40PM -0800, Steve Rikli wrote:
> 
> > Depending on how the NFS mount is done, this works fine; that is, I've
> > noticed an apparent difference in buildworld behavior, and it seems to
> > cause a failure. Here are the 2 different setups:
> 
> You may find https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275030
> interesting

Somewhat. My /usr/obj/ today is local to the buildworld's sysdisk so no
NFS is involved in writing to /usr/obj/ -- only /usr/src/ is from NFS,
and it is read-only.

But some of the notes in the bug make me wonder if moving /usr/obj/ to
NFS, as well as /usr/src/, might somehow produce different results.

The NFS /usr/obj/ export would have to be writeable, of course, but I'd
prefer to keep /usr/src/ read-only, assuming that's a supported setup
for buildworld.

That aside, I still wonder about buildworld having some problem with
"/usr/src/" vs. a /usr/src symlink which points to "/net/srv/...".

Thanks,
sr.