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

From: Steve Rikli <sr_at_genyosha.net>
Date: Fri, 14 Nov 2025 01:39:08 UTC
On Fri, Nov 14, 2025 at 12:54:41AM +0000, void wrote:
> On Thu, Nov 13, 2025 at 04:13:04PM -0800, Steve Rikli wrote:
> 
> > That aside, I still wonder about buildworld having some problem with
> > "/usr/src/" vs. a /usr/src symlink which points to "/net/srv/...".
> 
> I don't see why /usr/obj or /usr/src over nfs wouldn't be supported
> I mean the /usr/obj over nfs not working properly is the basis for that
> ticket after all. I'm not the OP of that PR though.
> 
> Having /usr/obj /usr/src and /var/cache/ccache over nfs is very useful
> in situations where the client machine might be low on resources like
> disk space or have low performance disk media like mmcsd, but might
> have acceptable network throughput.

Agreed -- that's essentially my situation with these test systems.

> I think a symlink (particularly a soft link) might produce unexpected
> results though. The last time I tried that in a buildworld context was many
> years ago and although I don't remember the exact outcome, I didn't persist
> with that configuration.

I suspect that's what I'm running into. Another experiment occurred to
me, e.g. symlink /usr/src to somewhere else temporarily on the local
disk, thereby taking NFS out of the picture, and see if the problem
replicates.

I'm expecting it will. In that case, it would seem like a reasonble
conclusion that you're right about /usr/src/ links and buildworld; I'll
just use a different NFS mount config if that's how it turns out.

cheers,
sr