Including A Data-Image For Configuration - Novell SLRS 8 Admin Manual

Table of Contents

Advertisement

mkdir -p etc/sysconfig
3. Create the configuration file within the files-user tree. In this case, sim-
ply copy the file from the real system into the image tree:
cp /etc/sysconfig/hotplug etc/sysconfig
The file tree within files-user is completely copied to the image while it is
created.
11.6.2 Including a Data-Image for configuration
If there are configuration files which you want to control outside of the image
itself a mechanism is needed to include this files. Normally this is done using
the CONF variable to specify which files should be loaded at which location
into the system after the main operating system image has been downloaded.
Well another way to do this is to handle a data image. For example:
1. Create a temporary directory which contains the data
mkdir /tmp/mydata
2. Create the directory structure according to the original system location
of the configuration file below this data directory and apply your config-
urations
mkdir -p /tmp/mydata/etc/X11
vi /tmp/mydata/etc/X11/XF86Config ...
3. If everything is done proceed creating a data image
scr --create-data-image /tmp/mydata \
--image mydata-1.1.1 --destdir /tmp/myDataDirectory
This call will create a data image named mydata-1.1.1 and the refering
MD5 sum. The files will be saved in /tmp/myDataDirectory.
4. To activate this image an entry to the IMAGE variable of the config.<MAC>
file has to be included. To make sure the contents of the data image
get copied into the system the image itself has to be downloaded to a
/dev/ramX device. A possible IMAGE setup may look like the following
example:
IMAGE=/dev/hda2;minimal;1.1.8;192.168.100.1;1024,
/dev/ram2;mydata;1.1.1;192.168.100.1;1024
The mydata image contents are copied completely to the system after it
has been downloaded to /dev/ram2.
11.6 Configuring an Image
121

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux retail solution 8

Table of Contents