| 1 |
.. _systemdeps: |
| 2 |
|
| 3 |
Host Requirements To Build Images |
| 4 |
--------------------------------- |
| 5 |
|
| 6 |
Building OS images requires several tools and subsystems to be present on the |
| 7 |
{kiwi} host. For example, to build a virtual disk image, tools for |
| 8 |
partition table setup or tools to create filesystems must be available on the |
| 9 |
host that builds the image. |
| 10 |
|
| 11 |
The number of required components depends on the selected image type and the |
| 12 |
features used with the image. It's unreasonable to expect {kiwi} users to know |
| 13 |
which exact components are needed to build the image. A mechanism called |
| 14 |
`kiwi-systemdeps` is designed to handle the host requirements. |
| 15 |
|
| 16 |
`kiwi-systemdeps` consists of a collection of sub-packages provided with the |
| 17 |
`python-kiwi` main package. Each individual package requires a number of tools |
| 18 |
and subsystem packages that belong to the package category. There are the |
| 19 |
following systemdeps packages: |
| 20 |
|
| 21 |
`kiwi-systemdeps-core`: |
| 22 |
* Supports building the simple root archive `tbz` image type. |
| 23 |
* Installs the package managers that are supported by the target distribution, |
| 24 |
as well as the `tar` archiving tool. |
| 25 |
|
| 26 |
`kiwi-systemdeps-containers`: |
| 27 |
* Supports building `OCI` image types used with `docker` and `podman`. |
| 28 |
* Installs the distribution-specific toolchain to build OCI- |
| 29 |
compliant container images. |
| 30 |
|
| 31 |
`kiwi-systemdeps-containers-wsl`: |
| 32 |
* Supports building `appx` and `wsl` image types. The `wsl` type |
| 33 |
is the successor to the former `appx` type. |
| 34 |
* Installs the distribution-specific toolchain to build |
| 35 |
WSL-compliant container images on Windows systems. |
| 36 |
|
| 37 |
`kiwi-systemdeps-iso-media`: |
| 38 |
* Supports building `iso` image types and `oem` install media. |
| 39 |
* Installs all tools required to build ISO filesystems. |
| 40 |
* Depends on the `-core`, `-filesystems`, and `-bootloaders` |
| 41 |
kiwi-systemdeps packages. |
| 42 |
|
| 43 |
`kiwi-systemdeps-bootloaders`: |
| 44 |
* Supports building bootable `oem` and `iso` image types. |
| 45 |
* Installs all bootloader tools depending on the host architecture |
| 46 |
to allow setup and install of the bootloader. The pulled-in |
| 47 |
components are required for any image that is able to boot |
| 48 |
through some BIOS or firmware. |
| 49 |
* Depends on the `-core` kiwi-systemdeps packages. |
| 50 |
|
| 51 |
`kiwi-systemdeps-filesystems`: |
| 52 |
* Supports building `fs-type`, `oem`, `pxe`, |
| 53 |
`kis`, and live `iso` image types. |
| 54 |
* Installs all tools to create filesystems supported by {kiwi}. |
| 55 |
The pulled-in components are needed for any image type that |
| 56 |
needs to create a filesystem. This excludes the archive-based |
| 57 |
image types like `docker`, `appx`, or `tbz`. The package also |
| 58 |
installs tools one level below the actual filesystem creation |
| 59 |
toolkit. These are components to manage loop devices, as well |
| 60 |
as partition table setup and subsystem support, like LVM and LUKS. |
| 61 |
* Depends on the `-core` kiwi-systemdeps packages. |
| 62 |
|
| 63 |
`kiwi-systemdeps-disk-images`: |
| 64 |
* Supports building the `oem` image type. |
| 65 |
* Installs all tools to create virtual disks. Virtual disks in {kiwi} |
| 66 |
are created using the QEMU toolchain. |
| 67 |
* Depends on the `-filesystems`, `-bootloaders` and `-iso-media` |
| 68 |
kiwi-systemdeps packages. |
| 69 |
|
| 70 |
`kiwi-systemdeps-image-validation`: |
| 71 |
* Installs the `jing` tool to validate the image description. This is |
| 72 |
useful for detailed error reports from {kiwi} if an image |
| 73 |
description validation error occurs. In addition, the `anymarkup` Python |
| 74 |
module is installed if the option to install recommended packages |
| 75 |
is set. With `anymarkup` available, {kiwi} can also handle image |
| 76 |
descriptions in a format other than the XML markup (for example, YAML). |
| 77 |
|
| 78 |
Depending on the image type, the `kiwi-systemdeps` packages can help |
| 79 |
to quickly set up the host system for building images. |
| 80 |
In case the host must support everything, there is also the |
| 81 |
main `kiwi-systemdeps` package that has all other |
| 82 |
existing `systemdeps` packages as its dependency. |
| 83 |
|
| 84 |
.. note:: |
| 85 |
|
| 86 |
Pulling in all `kiwi-systemdeps` packages can result in a large number of |
| 87 |
packages installed on the host because the required packages themselves |
| 88 |
have other dependencies (for example, java for jing). |