diff --git a/share/doc/handbook/diskless.sgml b/share/doc/handbook/diskless.sgml index 5e44be28b4ce..b1062ef5e03c 100644 --- a/share/doc/handbook/diskless.sgml +++ b/share/doc/handbook/diskless.sgml @@ -1,4 +1,4 @@ - + Diskless operation @@ -102,13 +102,21 @@ hostname myclient.mydomain If you are swapping over NFS (completely diskless configuration) create a swap file for your client - using touch. If your swapfs command has the - argument /swapfs as in the example above, - the swapfile for myclient will be called + using dd. If your swapfs command has the + arguments /swapfs and the size 20000 as in the + example above, the swapfile for myclient will be called /swapfs/swap.X.X.X.X where X.X.X.X is the client's IP addr, eg: -# touch /swapfs/swap.192.1.2.4 +# dd if=/dev/zero of=/swapfs/swap.192.1.2.4 bs=1k count=20000 + + + Also, the client's swap space might contain sensitive + information once swapping starts, so make sure to + restrict read and write access to this file to prevent + unauthorized access: + +# chmod 0600 /swapfs/swap.192.1.2.4 Unpack the root filesystem in the directory the