Novell SLRS 8 Admin Manual page 118

Table of Contents

Advertisement

11 Creating Operating System Images
2. Create a file using the same syntax as the setup file and add the package
to it. The size parameter can be part of this file, too. Specify the file as
an argument of the scr parameter --extend
The following example will demonstrate both possible workflows for extend-
ing an image, starting with the first method:
1. Create a copy of the standard minimal image:
scr --create myImage-1.1.1 --image minimal-1.1.7
2. Edit the file /opt/SLES/POS/system/myImage-1.1.1/setup and add
the following line:
vim : x : x
3. Adapt the size parameter of the file /opt/SLES/POS/system/myImage-
1.1.1/config because the image will be bigger. Otherwise the image
cannot be created and a corresponding error message will be displayed
by the scr, which informs about the needed image size.
size:42M
4. Build the new image with the command:
scr --build --prepare \
--image myImage-1.1.1 --destdir /tmp/myDirectory
5. Find the newly created image and the md5 file in the directory /tmp/myDirectory.
The second method follows:
1. Create a copy of the standard minimal image:
scr --create myImage-1.1.1 --image minimal-1.1.7
2. Create the file /tmp/setup.with.vim and add the following lines:
size:42M
vim : x : x
The specification of packages in this file requires the single packages to
exist at /opt/SLES/POS/pac. If your package resides elsewhere, specify
the path at the end of the line, for example, vim : x : x : /tmp/editors.
3. Build the new image with the command:
scr --build --prepare --extend /tmp/setup.with.vim \
--image myImage-1.1.1 --destdir /tmp/myDirectory
4. Find the newly created image and the md5 file in the directory /tmp/myDirectory.
118

Advertisement

Table of Contents
loading

This manual is also suitable for:

Suse linux retail solution 8

Table of Contents