| 1 |
.. _suse_media: |
| 2 |
|
| 3 |
Using SUSE Product ISO To Build |
| 4 |
=============================== |
| 5 |
|
| 6 |
.. sidebar:: Abstract |
| 7 |
|
| 8 |
This page provides information on how to use the SUSE |
| 9 |
media ISO with {kiwi}. |
| 10 |
|
| 11 |
When building an image with {kiwi}, the image description usually |
| 12 |
points to a number of public/private package source repositories |
| 13 |
from which the new image root tree will be created. Alternatively, |
| 14 |
the vendor-provided product ISO image(s) can be used. The contents |
| 15 |
of the ISO (DVD) media also provide package source repositories |
| 16 |
but are organized in a vendor-specific structure. As a user, it's |
| 17 |
important to know about this structure so that the {kiwi} |
| 18 |
image description can consume it. |
| 19 |
|
| 20 |
To use a SUSE product media, the following steps are required: |
| 21 |
|
| 22 |
1. Mount the ISO media from the file or DVD drive: |
| 23 |
|
| 24 |
.. code:: bash |
| 25 |
|
| 26 |
$ sudo mount Product_ISO_file.iso|DVD_drive /media/suse |
| 27 |
|
| 28 |
2. Look up all `Product` and `Module` directories: |
| 29 |
|
| 30 |
Below `/media/suse`, there is a directory structure that |
| 31 |
provides package repositories in directories starting |
| 32 |
with `Product-XXX` and `Module-XXX`. It depends on the |
| 33 |
package list in the {kiwi} image description from which |
| 34 |
location a package or a dependency of the package is |
| 35 |
taken. Therefore, it is best practice to browse through |
| 36 |
all the directories and create a `<repository>` definition |
| 37 |
for each of them in the {kiwi} image description, as |
| 38 |
the following example shows: |
| 39 |
|
| 40 |
.. code:: xml |
| 41 |
|
| 42 |
<repository alias="DVD-1-Product-SLES"> |
| 43 |
<source path="file:///media/suse/Product-SLES"/> |
| 44 |
</repository> |
| 45 |
|
| 46 |
<repository alias="DVD-1-Module-Basesystem"> |
| 47 |
<source path="file:///media/suse/Module-Basesystem"/> |
| 48 |
</repository> |
| 49 |
|
| 50 |
Once all the individual product and module repos have been created |
| 51 |
in the {kiwi} image description, the build process can be started |
| 52 |
as usual. |
| 53 |
|
| 54 |
.. note:: |
| 55 |
|
| 56 |
Because of the manual mount process, the `/media/suse` location |
| 57 |
stays busy after {kiwi} has created the image. The cleanup of |
| 58 |
this resource is the responsibility of the user and not done |
| 59 |
by {kiwi}. |