NetBSD-Docs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Diskless NetBSD HOW-TO (http://www.netbsd.org/docs/network/netboot/)



On Fri, 23 Oct 2020, Benny Siegert wrote:


Send a diff and I will apply it! :)


Hello,

This is my first attemt to update the documentation. Only verified on NetBSD and Linux so far.

Regards
Palle

---------------------------------------------------------------------------




Index: docs/network/netboot/files.html
===================================================================
RCS file: /cvsroot/htdocs/docs/network/netboot/files.html,v
retrieving revision 1.3
diff -u -r1.3 files.html
--- docs/network/netboot/files.html 1 Aug 2007 15:36:01 -0000 1.3
+++ docs/network/netboot/files.html	29 Oct 2020 20:22:21 -0000
@@ -52,7 +52,6 @@
 <p>

 <li>Set up swap:<br>
-   <tt># <b>mkdir /export/client/root/swap</b></tt><br>

<tt>#&nbsp;<b>dd&nbsp;if=/dev/zero&nbsp;of=/export/client/swap&nbsp;bs=4k&nbsp;count=4k</b></tt>
<p>This creates a 16 MB swap file. If your operating system doesn't have a
    <tt>/dev/zero</tt> (HP-UX doesn't), then you can download this 16 MB
@@ -74,7 +73,7 @@
 <li>Set up <tt>/etc/fstab</tt>.  Create a file called
<tt>/export/client/root/etc/fstab</tt>, which has the following lines:<br>
 <pre><b>#/etc/fstab
-nfsserver:/export/client/swap   none  swap  sw,nfsmntpt=/swap
+/swap                           none  swap  sw 0 0
 nfsserver:/export/client/root   /     nfs   rw 0 0
 nfsserver:/export/client/usr    /usr  nfs   rw 0 0
 nfsserver:/export/client/home   /home nfs   rw 0 0</b></pre>
Index: docs/network/netboot/nfs.html
===================================================================
RCS file: /cvsroot/htdocs/docs/network/netboot/nfs.html,v
retrieving revision 1.4
diff -u -r1.4 nfs.html
--- docs/network/netboot/nfs.html 14 Sep 2011 16:31:07 -0000 1.4
+++ docs/network/netboot/nfs.html	29 Oct 2020 20:22:21 -0000
@@ -59,12 +59,6 @@
 </tt></td></tr>

 <tr><td><tt>
-/export/client/swap </tt><i>(file)</i>
-</td><td><tt>
-/swap </tt><i>(file)</i>
-</td></tr>
-
-<tr><td><tt>
 /export/client/usr
 </tt></td><td><tt>
 /usr
@@ -78,9 +72,6 @@
 </table>
 <p>

-Note that <tt>/swap</tt> will be mounted as a file.
-<p>
-
 Also, note that if the server has the same architecture (e.g. Motorola
 680X0 microprocessor for NetBSD/hp300 and sun3, Sparc microprocessor
 for NetBSD/sparc, and Vax microprocessor for NetBSD/vax), and is
@@ -108,6 +99,11 @@
 in the next section of this HOW-TO.
 <p>

+<strong>NOTE</strong>: Only a few of the platforms below have been updated
+with current instructions on how to mount the swap file.
+Platforms updated so far: NetBSD, OpenBSD, Linux.
+<p>
+
 Setting up nfs, <a href="#netbsd">NetBSD</a><br>
 Setting up nfs, <a href="#openbsd">OpenBSD</a><br>
 Setting up nfs, <a href="#freebsd">FreeBSD</a><br>
@@ -143,9 +139,6 @@
 <li><tt># <b>mkdir /export/client/home</b></tt>
 <p>

-<li><tt># <b>touch /export/client/swap</b></tt>
-<p>
-
 <li><tt># <b>cd /export/client/root</b></tt>
 <p>

@@ -158,7 +151,6 @@
 <li>Add the following lines to <tt>/etc/exports</tt>:
 <pre><b>#/etc/exports
 /export/client/root -maproot=root:wheel    client.test.net
-/export/client/swap -maproot=root:wheel    client.test.net
 /export/client/usr  -maproot=nobody:nobody client.test.net
 /export/client/home -maproot=nobody:nobody client.test.net</b></pre>
 <p>
@@ -420,9 +412,6 @@
 <li><tt># <b>mkdir /export/client/home</b></tt>
 <p>

-<li><tt># <b>touch /export/client/swap</b></tt>
-<p>
-
 <li><tt># <b>cd /export/client/root</b></tt>
 <p>

@@ -435,7 +424,6 @@
 <li>Add the following lines to <tt>/etc/exports</tt>:
 <pre><b>#/etc/exports
 /export/client/root client.test.net(rw,no_root_squash)
-/export/client/swap client.test.net(rw,no_root_squash)
 /export/client/usr client.test.net(rw,root_squash)
 /export/client/home client.test.net(rw,root_squash)</b></pre>
 <p>



Home | Main Index | Thread Index | Old Index