From ca04529693893fd76013beb23cff7ee69b2a2c3e Mon Sep 17 00:00:00 2001 From: Rodrigo Osorio Date: Mon, 5 Mar 2018 15:50:47 +0000 Subject: [PATCH] update/correct the Handbook Diskless operations chapter - Add the -maproot=root to the NFS export configuration - Mention base archive from the ftp server as an alternative way to install the base system - Fix the usage - Add details about how to use md_size files to increase the default mfs size for /var and /etc PR: 213175 Submitted by: Natacha Porte Reviewed by: sevan bcr ian Approved by: ian sevan Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D14336 --- .../handbook/advanced-networking/chapter.xml | 39 ++++++++++--------- 1 file changed, 21 insertions(+), 18 deletions(-) diff --git a/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml b/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml index cd7f7badf4..318879762f 100644 --- a/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml +++ b/en_US.ISO8859-1/books/handbook/advanced-networking/chapter.xml @@ -3898,7 +3898,7 @@ ifconfig_lagg0="up laggproto failo NFS by adding the following to /etc/exports: - /b -ro -alldirs + /b -ro -alldirs -maproot=root @@ -3937,22 +3937,16 @@ ifconfig_lagg0="up laggproto failo - Rebuild the &os; kernel and userland (refer to for more detailed - instructions): - - &prompt.root; cd /usr/src -&prompt.root; make buildworld -&prompt.root; make buildkernel - - - - Install &os; into the directory mounted over - NFS: - - &prompt.root; make installworld DESTDIR=${NFSROOTDIR} -&prompt.root; make installkernel DESTDIR=${NFSROOTDIR} -&prompt.root; make distribution DESTDIR=${NFSROOTDIR} + Install the base system into + ${NFSROOTDIR}, either by + decompressing the official archives or by rebuilding + the &os; kernel and userland (refer to + for more detailed + instructions, but do not forget to add + + when running the + make installkernel and + make installworld commands. @@ -4026,7 +4020,16 @@ Received 264951 bytes in 0.1 seconds /etc and /var will be created and mounted and the contents of the cpio.gz files will be copied into - them. + them. By default, these file systems have a maximum capacity + of 5 megabytes. If your archives do not fit, which is + usually the case for /var when binary + packages have been installed, request a larger size by putting + the number of 512 byte sectors needed (e.g., 5 megabytes + is 10240 sectors) in + ${NFSROOTDIR}/conf/base/etc/md_size and + ${NFSROOTDIR}/conf/base/var/md_size + files for /etc and + /var file systems respectively.