❷
The
description
element is used to provide some basic information on the
creator of the image and a basic description of the image's purpose. The
author
element holds the image author's real name and the
contact
element a valid
email address.
specification
holds a short description of the image's purpose.
❸
The
preferences
element holds information needed to create the logical extend.
The
type
element determines the type of image to be created. SUSE Linux En-
terprise Point of Service supports the following values for
type
:
usb
,
pxe
, and
iso
. If your
config.xml
contains more than one
type
element, you either
need to add the
primary
attribute (with its value set to
true
) to the
type
that
should be used for the final image, or the first entry is used by default.
defaultdestination
and
defaultroot
are used, if KIWI is not called
with the
destdir
option or the
root
option, respectively.
❹
The
repository
element references any package sources used in building this
image. To reference local paths such as the above mentioned
repo
directory, you
need to include a
source
element providing the path to the repository you want
to use. In this example, you would use:
<source path="this://repo"/>
.
You would also need to specify the
type
of the repository, in this case you would
need to use
rpm-dir
, as you are referencing a mere collection of RPMs here.
❺
Standard YaST package sources as you would get by copying the original media
to a distribution directory. Provide the repository
type
as
yast2
and include a
local path to the respective directory. SUSE Linux Enterprise Point of Service
uses the
/var/lib/dist/
base_distribution
directory by default. This
is where poscdtool and poscopytool copy the sources to by default. An optional
attribute
status
with the value of
replaceable
is used to exclude the
repositories carrying this attribute from being used for any boot image being built.
❻
The
packages
element serves as a container for all the
package
elements used
to designate the packages to be handled by KIWI. There are several types of
package sets supported by KIWI:
image
includes all the packages which make
up the image and are used to finish the image installation,
boot
includes the list
of packages needed to create a new operating system root tree, and
delete
in-
cludes all packages earmarked for deletion and that are not needed in the final
image.
Building Images with KIWI
177