7.3 Managing the Image Source Files

This section reviews tasks required to prepare the Administration Server tasks to build client images with ImageBuilder.

7.3.1 Copying the Novell Linux Point of Service CDs

POSCDTool and POSCopyTool copy the RPM software packages used to build NLD-based client images to the following distribution directory structure:

NOTE:The following bullet list shows the NLD CDs in the default distribution directory structure, /opt/SLES/POS/dist.

  • SLESCD0=/opt/SLES/POS/dist/NLD9/SP1/CD1
  • SLESCD1=/opt/SLES/POS/dist/NLD9/SP1/CD2
  • SLESCD2=/opt/SLES/POS/dist/NLD9/FCS/CD1
  • SLESCD3=/opt/SLES/POS/dist/NLD9/FCS/CD2
  • SLESCD4=/opt/SLES/POS/dist/NLD9/FCS/CD3
  • SLESCD5=/opt/SLES/POS/dist/NLPOS9/FCS/CD4

POSCDTool and POSCopyTool copy the RPM software packages used to build SLES-based POSBranch images to the following distribution directory structure:

NOTE:The following bullet list shows the SLES CDs in the default distribution directory structure, /opt/SLES/POS/dist.

  • SLESCD0=/opt/SLES/POS/dist/NLPOS9/FCS/CD1
  • SLESCD1=/opt/SLES/POS/dist/NLPOS9/FCS/CD2
  • SLESCD2=/opt/SLES/POS/dist/NLPOS9/FCS/CD4
  • SLESCD3=/opt/SLES/POS/dist/SLES9/FCS/CD1
  • SLESCD4=/opt/SLES/POS/dist/SLES9/FCS/CD2
  • SLESCD5=/opt/SLES/POS/dist/SLES9/FCS/CD3

NOTE:POSBranch images can only be generated with the xscr tool. For more information, see Section 10.2, Building POSBranch Images.

After you copy the CDs using POSCDTool or POSCopyTool, ImageBuilder can use the copied files to build images.

POSCDTool Command

The copy command syntax for POSCDTool is as follows:

poscdtool.pl --copy [--type=cd|dir] --source=source_media [--dest=distribution_directory]

For example, the following command copies the Novell Linux Point of Service CDs from a CD source to the default distribution directory, opt/SLES/POS/dist/:

poscdtool.pl --copy --source=/media/cdrom

POSCopyTool Command

The copy command syntax for POSCopyTool is as follows:

poscopytool.pl --source=path

For example:

poscopytool.pl --source=/media/dvd

When you use POSCopyTool, it performs the following functions:

  • Copies the Novell Linux Point of Service CDs from the designated source media to the default distribution directory, opt/SLES/POS/dist/.
  • Creates AdminServer.conf in /opt/SLES/POS/.
  • Creates Distribution.xml with both the NLD and SLES image classes in /opt/SLES/POS/system/templates/.
  • Verifies the source CDs were correctly copied to the distribution directory.

7.3.2 Linking the Novell Linux Point of Service CDs

ImageBuilder cannot access the RPMs on the Novell Linux Point of Service CDs unless they are stored in the distribution file structure.

Under the destination directory, ImageBuilder requires that the Novell Linux Point of Service CDs be archived in distribution directories (NLD, SLES, SLRS). Within each of the distribution directories are revision directories (FCS, SP1, SP2, and so forth). Under each revision directory are CD directories (CD1, CD2, and so forth).

If you are maintaining the product CDs in another directory structure—for example, if you store the product CDs on an NFS server to provide a single point of installation for Administration and Branch Servers throughout your network—you must link the source CDs to the distribution file structure.

IMPORTANT:This option is required only if the Novell Linux Point of Service CDs are not archived in the distribution file structure. If you copy the CDs using POSCDTool, the CDs are automatically copied to the distribution file structure.

The link command syntax is as follows:

poscdtool.pl --link --source=source_media 
[--dest=distribution_directory]

For example, the following command links the Novell Linux Point of Service CDs from a CD source on an NFS server to the default distribution directory, /opt/SLES/POS/dist/:

poscdtool.pl --link --source=/nfs/cd 

This command links the CDs on the NFS server to the default distribution directory, opt/SLES/POS/dist/.

7.3.3 Mounting the Novell Linux Point of Service CDs

If you have multiple Administration Servers where you want to build images, you can mount a single distribution directory on each server rather than copying the Novell Linux Point of Service CDs to each server.

The mount command syntax is as follows:

poscdtool.pl --mount --source=mount_source 
[--dest=distribution_directory]

For example, the following command mounts the default distribution directory on an Administration Server to one on another Administration Server:

poscdtool.pl --mount --source=adminserver1:/hd1

7.3.4 Generating AdminServer.conf or Distribution.xml

The AdminServer.conf and Distribution.xml files define the paths to the distribution directories where you have copied the Novell Linux Point of Service CDs. ImageBuilder searches these paths to locate the RPM packages required to build images.

AdminServer.conf is used by scr. This ASCII, line-based file is located at etc/opt/SLES/POS/. For more information on the AdminServer.conf file structure and contents, see Section 8.2.2, AdminServer.conf.

The Distribution.xml document is used by xscr. By default, the Distribution.xml document is located in /opt/SLES/POS/system/templates/. For information on the Distribution.xml elements and attributes, see Section 9.2.3, Distribution Source Document (Distribution.xml).

Upon completion of the copy procedure, POSCopyTool automatically generates the AdminServer.conf and Distribution.xml files.

If necessary, you can use the following syntax to manually generate AdminServer.conf and Distribution.xml with POSCDTool (type the command all on one line):

poscdtool.pl --generate [--type=conf|xml] 
[--source=distribution_directory] [--dest=output_path] 
[--imageclass=NLD|SLES]

For example, the following command generates both AdminServer.conf and Distribution.xml using the default distribution directory. Distribution.xml is defined with both the NLD and SLES image classes and the document is saved to the default output path, /opt/SLES/POS/system/template/. The final AdminServer.conf file is saved to the default output path, /opt/SLES/POS/.

poscdtool.pl --generate 

The following command uses the default distribution directory structure to create only the AdminServer.conf file in the default output path, /etc/opt/SLES/POS/.

poscdtool.pl --generate --type=conf

The following command uses the default distribution directory structure to create only the Distribution.xml document with the SLES image class. The document is saved to the default output path, /opt/SLES/POS/system/template/.

poscdtool.pl --generate --type=xml --imageclass=SLES

7.3.5 Verifying CD Availability

After all the initial configuration is complete, it is recommended that you verify the Novell Linux Point of Service CDs are available in the distribution directories before you try to build an image.

Upon completion of the copy procedure, POSCopyTool automatically verifies the source CDs were correctly copied to the distribution directory.

Use the following syntax to manually verify the source CDs with POSCDTool:

poscdtool.pl --verify [--source=distribution_directory] 
[--imageclass=NLD|SLES]

For example, the following command verifies the both the SLES and NLD source files are available in the default distribution directory, /opt/SLES/POS/dist/:

poscdtool.pl --verify 

The following command verifies only the NLD source files are available in /opt/SLES/POS/dist/:

poscdtool.pl --verify --imageclass=NLD