aboutsummaryrefslogtreecommitdiff
path: root/share/examples/cvsup/ports-supfile
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2026-04-05 16:00:24 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2026-04-05 16:02:39 +0000
commit8b9775912cbc7bb3c05c1fdfc3597dc4b68a9b9e (patch)
tree3e29ecc4502d96c36297a22cf8c7c214cb979e05 /share/examples/cvsup/ports-supfile
parentcb813145f0ad72705cb4ccf80222a408abe3d54c (diff)
nfs_diskless: Add support for an NFSv4 root fsHEADmain
Without this patch, diskless root NFS file systems could only be mounted via NFSv3 (or NFSv2). This patch adds the basic support needed to mount a root fs via NFSv4. At this time, the NFSv4 mount will only work if the following is done on the NFS server configuration: - The root directory specified in the "V4:" line in /etc/exports must be "/". This is needed since the path to mount must be the same for NFSv3 and NFSv4. - The NFS server must be configured to do both NFSv3 and NFSv4, since the bootstrap code still uses NFSv3. - The NFSv4 server must be configured with: vfs.nfs.enable_uidtostring=1 vfs.nfsd.enable_stringtouid=1 since the NFSv4 root fs cannot be running nfsuserd(8) when it is booting. (This limitation may be removed in a future commit by hard-wiring enough id<-->name mapping entries to handle things until the nfsuserd(8) is running.) To enable the root fs to be mounted via NFSv4, it needs: - in the root file system's /boot/loader.conf boot.nfsroot.options="nfsv4" (Additional options like rsize=65536,wsize=65536 can also be specified.) - in the root file system's /etc/sysctl.conf vfs.nfs.enable_uidtostring=1 Requested by: Dan Shelton <dan.f.dhelton@gmail.com> MFC after: 1 week
Diffstat (limited to 'share/examples/cvsup/ports-supfile')
0 files changed, 0 insertions, 0 deletions