Re: Shared-root diskless netboot, critical local/remote mounts, and rc.conf

"Greg A. Woods" <[email protected]> Mon, 06 Oct 2025 18:02:19 -0700
Newsgroups gmane.os.netbsd.devel.userlevel
Organization Planix, Inc.
Message-ID <[email protected]>
At Mon, 6 Oct 2025 15:53:24 -0700, Chris Hanson <[email protected]> wrote:
Subject: Shared-root diskless netboot, critical local/remote mounts, and rc.conf
>
> I’ve been looking off and on at what it would take to set up
> NetBSD for "NeXT-like” netboot, where every network-booted system
> shares the same read-only NFS-mounted root filesystem and
> per-system content is provided via a separate NFS mount at
> /private. This makes keeping multiple netbooted systems up-to-date
> easy, because only system-specific information changes.

Back when I ran diskless systems I modified nfs/nfs_bootparam.c to also
ask for an "etc" path (along with "root", "dump", and "swap").

The rest, i.e. /usr (if separate), /tmp, and /var were handled by the
normal /etc/fstab entries.

It worked perfectly, no silly symlinks or hoop jumping or hidden base
/etc/rc junk required.

--
					Greg A. Woods <[email protected]>

Kelowna, BC     +1 250 762-7675           RoboHack <[email protected]>
Planix, Inc. <[email protected]>     Avoncote Farms <[email protected]>
signature.asc (application/pgp-signature, 195 B)
-----BEGIN PGP SIGNATURE-----

iF0EABECAB0WIQRuK6dmwVAucmRxuh9mfXG3eL/0fwUCaORmmAAKCRBmfXG3eL/0
fxf8AJ0Xxcn13iWrHm6A04hI53B11q8o3gCeMDIVD8LFdh7be1ETyu1n+vSTBAs=
=1Sjt
-----END PGP SIGNATURE-----