| 1 |
.. _image-description: |
| 2 |
|
| 3 |
Image Description |
| 4 |
================= |
| 5 |
|
| 6 |
.. note:: |
| 7 |
|
| 8 |
This document explains the top-level structure of the |
| 9 |
{kiwi} image description document for version |version|. |
| 10 |
|
| 11 |
.. toctree:: |
| 12 |
:maxdepth: 1 |
| 13 |
|
| 14 |
image_description/elements.rst |
| 15 |
|
| 16 |
|
| 17 |
Main Root |
| 18 |
--------- |
| 19 |
|
| 20 |
.. code:: xml |
| 21 |
|
| 22 |
<image/> |
| 23 |
|
| 24 |
The mandatory :ref:`sec.image` element represents the root (top-level element) of |
| 25 |
an image description. All other elements must be descendants of this |
| 26 |
element. There can be only one `image` element. |
| 27 |
|
| 28 |
Image Identity |
| 29 |
-------------- |
| 30 |
|
| 31 |
.. code:: xml |
| 32 |
|
| 33 |
<description/> |
| 34 |
|
| 35 |
The mandatory :ref:`sec.description` element contains information about the author, |
| 36 |
contact, license, and the specification about the use case of this |
| 37 |
image. All data together forms the identity card of the image. |
| 38 |
There can be only one `description` element. |
| 39 |
|
| 40 |
Image Preferences |
| 41 |
----------------- |
| 42 |
|
| 43 |
.. code:: xml |
| 44 |
|
| 45 |
<preferences/> |
| 46 |
|
| 47 |
The mandatory :ref:`sec.preferences` element contains information to classify |
| 48 |
the image and to describe the layout. All data about the image type, its |
| 49 |
version, the partition layout, and much more is specified here. There can be |
| 50 |
multiple `preferences` elements. |
| 51 |
|
| 52 |
Image Software Sources |
| 53 |
---------------------- |
| 54 |
|
| 55 |
.. code:: xml |
| 56 |
|
| 57 |
<repository/> |
| 58 |
|
| 59 |
The mandatory :ref:`sec.repository` element contains information on where to find the |
| 60 |
software packages that are used to build the image. There can be |
| 61 |
multiple `repository` elements. |
| 62 |
|
| 63 |
Image Content Setup |
| 64 |
------------------- |
| 65 |
|
| 66 |
.. code:: xml |
| 67 |
|
| 68 |
<packages/> |
| 69 |
|
| 70 |
The mandatory :ref:`sec.packages` element contains information to list which |
| 71 |
software should be installed from the configured repositories |
| 72 |
into the image. Software can be defined as names for packages, |
| 73 |
collections, archives, or products. There can be multiple |
| 74 |
`packages` elements. |
| 75 |
|
| 76 |
Image Users |
| 77 |
----------- |
| 78 |
|
| 79 |
.. code:: xml |
| 80 |
|
| 81 |
<users/> |
| 82 |
|
| 83 |
The optional :ref:`sec.users` element contains information about system users |
| 84 |
to be created inside the image. There can be multiple `users` |
| 85 |
elements. |
| 86 |
|
| 87 |
Image Namespace |
| 88 |
--------------- |
| 89 |
|
| 90 |
.. code:: xml |
| 91 |
|
| 92 |
<profiles/> |
| 93 |
|
| 94 |
The optional :ref:`sec.profiles` element contains information to create one |
| 95 |
or more namespaces for an image description. The namespace can be |
| 96 |
used with any of the above elements and therefore tie them into |
| 97 |
a namespace that can be selected at call time of {kiwi}. |
| 98 |
|
| 99 |
Image Includes |
| 100 |
-------------- |
| 101 |
|
| 102 |
.. code:: xml |
| 103 |
|
| 104 |
<include from="file://filename.xml"/> |
| 105 |
|
| 106 |
The optional :ref:`sec.include` element allows you to drop in the contents |
| 107 |
of the specified :file:`filename.xml` file at the place where the `include` |
| 108 |
statement was specified in the document. The `include` statement is |
| 109 |
only allowed as a descendant of the root (top-level element) of the |
| 110 |
image description. |