diskless-newhost: create/maintain new host

Syntax

diskless-newimage [imagedir [ip [option=value] ...] ...]

Note: If you want to be able to boot Linux without any command line parameters or extra DHCPD parameters, /tftpboot must exist beforehand. Create it with mkdir /tftpboot as root. Otherwise symlinks will not be created, and you will have to manually specify the root NFS directory before booting Linux.

Options

If any required information is omitted or invalid or the command line, it will be prompted for. If the option "defaults=yes" is supplied, default values will be used where possible. Valid options are host=..., This will default to the DNS host home derived from the IP address if possible. All values are checked to ensure that they are valid. Help may be obtained by pushed ? at any prompt.

Description

This creates a new hosts belonging the imagedir or updates an existing host. It prompts for information not supplied on the command line, and can operate on multiple clients at the same time to increase efficiency. Config information is saved in hostdir/etc/diskless-host. If any files have been changed, the user will be prompted (see chapter 5).

This program should be run whenever files under imagedir may have changed, in order to make each hostdir consistent.

Source

Table 3-1. Source Files

directory treerules file
imagedir/$USR/templateimagedir/$USR/rules-template
imagedirimagedir/$USR/rules-image

In addition, files under imagedir/$USR/template/etc will be processed by m4, in order to add host specific information. It is recommended that you do not change these files manually. If this is required, then please tell me and I will add provision to do this under imagedir/$VAR.

Destination

Files are created in the following locations:

  1. It creates files under hostdir (ie hostsdir/ip).

  2. It creates sample entries for /etc/exports in hostdir/etc/diskless-host/exports.

  3. It creates a symbolic link from /tftpboot/$IP to hostsdir/root (the root file-system). Any existing symlink is deleted. This step is bypassed if /tftpboot doesn't exist.