Update to r51461:

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 <command> usage
- Add details about how to use md_size files to increase the default mfs size for /var and /etc
This commit is contained in:
Bjoern Heidotting 2018-05-13 18:58:00 +00:00
parent 564f0686cf
commit 2f4f3866dd
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=51648

View file

@ -5,7 +5,7 @@
$FreeBSD$
$FreeBSDde:$
basiert auf: r51263
basiert auf: r51461
-->
<chapter xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink" version="5.0"
@ -4254,7 +4254,7 @@ ifconfig_<literal>lagg<replaceable>0</replaceable></literal>="up laggproto failo
<acronym>NFS</acronym>, indem Sie folgende Zeile in
<filename>/etc/exports</filename> hinzufügen:</para>
<programlisting>/b -ro -alldirs</programlisting>
<programlisting>/b -ro -alldirs -maproot=root</programlisting>
</step>
<step>
@ -4295,22 +4295,16 @@ ifconfig_<literal>lagg<replaceable>0</replaceable></literal>="up laggproto failo
</step>
<step>
<para>Erstellen Sie einen neues Basissystem und einen
&os;-Kernel. Detaillierte Anweisungen hierzu finden Sie
im <xref linkend="makeworld"/>:</para>
<screen>&prompt.root; <userinput>cd /usr/src</userinput>
&prompt.root; <userinput>make buildworld</userinput>
&prompt.root; <userinput>make buildkernel</userinput></screen>
</step>
<step>
<para>Installieren Sie &os; in das Verzeichnis, welches über
<acronym>NFS</acronym> eingehangen ist:</para>
<screen>&prompt.root; <userinput>make installworld DESTDIR=${NFSROOTDIR}</userinput>
&prompt.root; <userinput>make installkernel DESTDIR=${NFSROOTDIR}</userinput>
&prompt.root; <userinput>make distribution DESTDIR=${NFSROOTDIR}</userinput></screen>
<para>Installieren Sie das Basissystem nach
<filename>${NFSROOTDIR}</filename>, indem Sie die
offiziellen Archive entpacken, oder ein neues
Basissystem und einen &os;-Kernel erstellen. Detaillierte
Anweisungen hierzu finden Sie im <xref
linkend="makeworld"/>. Vergessen Sie jedoch nicht
<option>DESTDIR=<replaceable>${NFSROOTDIR}</replaceable></option>
hinzuzufügen, wenn Sie die Kommandos
<command>make installkernel</command> und
<command>make installworld</command> ausführen.</para>
</step>
<step>
@ -4363,7 +4357,8 @@ Received 264951 bytes in 0.1 seconds</screen>
<step>
<para>Führen Sie alle weiteren Anpassungen der
<acronym>PXE</acronym>-Umgebung in ${NFSROOTDIR} durch,
<acronym>PXE</acronym>-Umgebung in
<filename>${NFSROOTDIR}</filename> durch,
wie zum Beispiel die Installation weiterer Pakete, oder
dass Bearbeiten der Passwortdatei mit &man.vipw.8;.</para>
</step>
@ -4384,6 +4379,21 @@ Received 264951 bytes in 0.1 seconds</screen>
&prompt.root; <userinput>mkdir -p conf/base</userinput>
&prompt.root; <userinput>tar -c -v -f conf/base/etc.cpio.gz --format cpio --gzip etc</userinput>
&prompt.root; <userinput>tar -c -v -f conf/base/var.cpio.gz --format cpio --gzip var</userinput></screen>
<para>Wenn das System bootet, werden Speicher-Dateisysteme
für <filename>/etc</filename> und
<filename>/var</filename> erstellt und eingehangen.
Anschließend wird der Inhalt der
<filename>cpio.gz</filename>-Dateien in diese Dateisysteme
kopiert. Standardmäßig haben diese Dateisysteme eine maximale
Kapazität von 5 Megabyte. Wenn die Archive nicht passen, was
für gewöhnlich bei <filename>/var</filename> der Fall ist,
erhöhen Sie die Kapazität indem Sie die Anzahl der benötigten
512 Byte Sektoren (5 Megabyte sind 10240 Sektoren) in
<filename>${NFSROOTDIR}/conf/base/etc/md_size</filename> und
<filename>${NFSROOTDIR}/conf/base/var/md_size</filename> für
die Dateisysteme <filename>/etc</filename> und
<filename>/var</filename> eintragen.</para>
</sect2>
<sect2 xml:id="network-pxe-setting-up-dhcp">