| 1 |
kiwi-ng image info |
| 2 |
================== |
| 3 |
|
| 4 |
.. _db_image_info_synopsis: |
| 5 |
|
| 6 |
SYNOPSIS |
| 7 |
-------- |
| 8 |
|
| 9 |
.. code:: bash |
| 10 |
|
| 11 |
kiwi-ng [global options] service <command> [<args>] |
| 12 |
|
| 13 |
kiwi-ng image info -h | --help |
| 14 |
kiwi-ng image info --description=<directory> |
| 15 |
[--resolve-package-list] |
| 16 |
[--list-profiles] |
| 17 |
[--print-kiwi-env] |
| 18 |
[--ignore-repos] |
| 19 |
[--add-repo=<source,type,alias,priority,imageinclude,package_gpgcheck,{signing_keys},components,distribution,repo_gpgcheck,repo_sourcetype>...] |
| 20 |
[--add-repo-credentials=<user:pass_or_filename>...] |
| 21 |
[--print-xml|--print-yaml|--print-toml] |
| 22 |
kiwi-ng image info help |
| 23 |
|
| 24 |
.. _db_image_info_desc: |
| 25 |
|
| 26 |
DESCRIPTION |
| 27 |
----------- |
| 28 |
|
| 29 |
Provides information about the specified image description. If no specific info |
| 30 |
option is provided, the command lists basic information about the image. This |
| 31 |
information is also available in the image XML description file. Specifying an |
| 32 |
extension option like `resolve-package-list` makes a dependency resolver run |
| 33 |
through the list of packages, providing more detailed information about |
| 34 |
the image description. |
| 35 |
|
| 36 |
.. _db_image_info_opts: |
| 37 |
|
| 38 |
OPTIONS |
| 39 |
------- |
| 40 |
|
| 41 |
--add-repo=<source,type,alias,priority,imageinclude,package_gpgcheck,{signing_keys},components,distribution,repo_gpgcheck,repo_sourcetype> |
| 42 |
|
| 43 |
Adds a new repository to the existing repository setup in the XML |
| 44 |
description. This option can be specified multiple times. |
| 45 |
|
| 46 |
- **source** |
| 47 |
|
| 48 |
Source URL pointing to a package repository that must be in a format |
| 49 |
supported by the selected package manager. See the URI_TYPES section for |
| 50 |
details about the supported source locators. |
| 51 |
|
| 52 |
- **type** |
| 53 |
|
| 54 |
Repository type: `rpm-md`, `apt-deb`. |
| 55 |
|
| 56 |
- **alias** |
| 57 |
|
| 58 |
An alias name for the repository. If not specified, {kiwi} generates |
| 59 |
an alias name as a result of a hex representation from uuid4. While the hex |
| 60 |
is used to uniquely identify the repository, it is not descriptive. |
| 61 |
We recommend using descriptive aliases. |
| 62 |
|
| 63 |
- **priority** |
| 64 |
|
| 65 |
A number indicating the repository priority. How the value is evaluated |
| 66 |
depends on the selected package manager. Refer to the package |
| 67 |
manager documentation for details about the supported priority ranges |
| 68 |
and their meaning. |
| 69 |
|
| 70 |
- **imageinclude** |
| 71 |
|
| 72 |
Set to either **true** or **false** to indicate if the repository |
| 73 |
is part of the system image repository setup or not. |
| 74 |
|
| 75 |
- **package_gpgcheck** |
| 76 |
|
| 77 |
Set to either **true** or **false** to indicate if the repository |
| 78 |
should validate the package signatures. |
| 79 |
|
| 80 |
- **{signing_keys}** |
| 81 |
|
| 82 |
A list of `signing_keys` enclosed in curly brackets and delimited by |
| 83 |
a semicolon. The reference to a signing key must be provided in the URI |
| 84 |
format. |
| 85 |
|
| 86 |
- **components** |
| 87 |
|
| 88 |
A component list for Debian-based repos as a space-delimited string. |
| 89 |
|
| 90 |
- **distribution** |
| 91 |
|
| 92 |
The main distribution name for Debian-based repos. |
| 93 |
|
| 94 |
- **repo_gpgcheck** |
| 95 |
|
| 96 |
Set to either **true** or **false** to indicate if the repository |
| 97 |
should validate the repository signature. |
| 98 |
|
| 99 |
- **repo_sourcetype** |
| 100 |
|
| 101 |
Specifies the source type of the repository path. Supported values |
| 102 |
are `baseurl`, `metalink`, or `mirrorlist`. With `baseurl`, the source |
| 103 |
path is interpreted as a simple URI. If `metalink` is set, the source |
| 104 |
path is resolved as a metalink URI, and if `mirrorlist` is set, the |
| 105 |
source path is resolved as a mirrorlist file. If not specified, |
| 106 |
`baseurl` is the default. |
| 107 |
|
| 108 |
--add-repo-credentials=<user:pass_or_filename> |
| 109 |
|
| 110 |
For **uri://user:pass@location** repositories, set the user and password |
| 111 |
associated with an add-repo specification. If the provided value describes a |
| 112 |
filename in the filesystem, the first line of that file is used as |
| 113 |
credentials. |
| 114 |
|
| 115 |
--description=<directory> |
| 116 |
|
| 117 |
The description must be a directory containing a kiwi XML |
| 118 |
description and optional metadata files. |
| 119 |
|
| 120 |
--ignore-repos |
| 121 |
|
| 122 |
Ignores all repository configurations from the XML description. |
| 123 |
This option is usually used together with the `--add-repo` |
| 124 |
option. Otherwise, there are no repositories available for |
| 125 |
processing the requested image information, which could lead |
| 126 |
to an error. |
| 127 |
|
| 128 |
--list-profiles |
| 129 |
|
| 130 |
Lists profiles available for the selected/default type. |
| 131 |
|
| 132 |
NOTE: |
| 133 |
If the image description is designed in a way that there |
| 134 |
is no default build type configured and/or the main build |
| 135 |
type is also profiled, it's required to provide this |
| 136 |
information to kiwi to list further profiles for this type. |
| 137 |
For example: kiwi-ng --profile top_level_entry_profile image info ... |
| 138 |
|
| 139 |
--print-kiwi-env |
| 140 |
|
| 141 |
Prints kiwi profile environment variables. The listed variables |
| 142 |
are available in the shell environment of the kiwi hook scripts. |
| 143 |
|
| 144 |
NOTE: |
| 145 |
The kiwi profile environment grows during the build process. |
| 146 |
When used in early stages, e.g., in a `post_bootstrap.sh` script, |
| 147 |
it can happen that not all variables have a value. The setup |
| 148 |
of the kiwi profile environment in the image info output can |
| 149 |
therefore also only list the static configuration values |
| 150 |
that are known at the beginning of a build process. |
| 151 |
|
| 152 |
--resolve-package-list |
| 153 |
|
| 154 |
Solves package dependencies and returns a list of all |
| 155 |
packages, including their attributes, for example, size, |
| 156 |
shasum, and more. |
| 157 |
|
| 158 |
--print-xml |
| 159 |
|
| 160 |
Prints the image description in the XML format. The specified image description is |
| 161 |
converted to XML and sent to the XSLT stylesheet processor. The result is then |
| 162 |
validated using the RelaxNG schema and the schematron rules. The command is |
| 163 |
normally used to convert an old image description to the latest schema. |
| 164 |
|
| 165 |
--print-yaml |
| 166 |
|
| 167 |
Behaves similarly to `--print-xml`, but after validation, the result is |
| 168 |
converted to the YAML format. The command can be used for different |
| 169 |
operations: |
| 170 |
|
| 171 |
* Conversion of the specified image description from or into different |
| 172 |
formats. This requires the `anymarkup` Python module to be installed. The |
| 173 |
module is not a hard requirement and is loaded on demand. If the module is |
| 174 |
missing, requests to convert to a format other than XML will fail. |
| 175 |
|
| 176 |
* Updates an old image description to the latest schema. |
| 177 |
|
| 178 |
--print-toml |
| 179 |
|
| 180 |
Behaves like `--print-yaml`, but the validated result is converted into |
| 181 |
TOML. This also requires the `anymarkup` Python module. |