1KIWI::SYSTEM::PREPARE(8) KIWI NG KIWI::SYSTEM::PREPARE(8)
2
3
4
6 kiwi::system::prepare - Prepare image root system
7
9 kiwi-ng [global options] service <command> [<args>]
10
11 kiwi-ng system prepare -h | --help
12 kiwi-ng system prepare --description=<directory> --root=<directory>
13 [--allow-existing-root]
14 [--clear-cache]
15 [--ignore-repos]
16 [--ignore-repos-used-for-build]
17 [--set-repo=<source,type,alias,priority,imageinclude,package_gpgcheck,{signing_keys},components,distribution,repo_gpgcheck>]
18 [--set-repo-credentials=<user:pass_or_filename>]
19 [--add-repo=<source,type,alias,priority,imageinclude,package_gpgcheck,{signing_keys},components,distribution,repo_gpgcheck>...]
20 [--add-repo-credentials=<user:pass_or_filename>...]
21 [--add-package=<name>...]
22 [--add-bootstrap-package=<name>...]
23 [--delete-package=<name>...]
24 [--set-container-derived-from=<uri>]
25 [--set-container-tag=<name>]
26 [--add-container-label=<label>...]
27 [--signing-key=<key-file>...]
28 kiwi-ng system prepare help
29
31 Create a new image root directory. The prepare step builds a new image
32 root directory from the specified XML description. The specified root
33 directory is the root directory of the new image root system. As the
34 root user you can enter this system via chroot as follows:
35
36 $ chroot <directory> bash
37
39 --add-bootstrap-package=<name>
40 specify package to install as part of the early kiwi bootstrap
41 phase. The option can be specified multiple times
42
43 --add-container-label=<name=value>
44 add a container label in the container configuration metadata.
45 It overwrites the label with the provided key-value pair in case
46 it was already defined in the XML description
47
48 --add-package=<name>
49 specify package to add(install). The option can be specified
50 multiple times
51
52 --add-repo=<source,type,alias,priority,imageinclude,pack‐
53 age_gpgcheck,{signing_keys},components,distribution,repo_gpgcheck>
54 Add a new repository to the existing repository setup in the XML
55 description. This option can be specified multiple times. For
56 details about the provided option values see the --set-repo in‐
57 formation below
58
59 --add-repo-credentials=<user:pass_or_filename>
60 For uri://user:pass@location type repositories, set the user and
61 password connected with an add-repo specification. The first
62 add-repo-credentials is connected with the first add-repo speci‐
63 fication and so on. If the provided value describes a filename
64 in the filesystem, the first line of that file is read and used
65 as credentials information.
66
67 --allow-existing-root
68 allow to re-use an existing image root directory
69
70 --clear-cache
71 delete repository cache for each of the used repositories before
72 installing any package. This is useful if an image build should
73 take and validate the signature of the package from the original
74 repository source for any build. Some package managers uncondi‐
75 tionally trust the contents of the cache, which is ok for cache
76 data dedicated to one build but in case of kiwi the cache is
77 shared between multiple image builds on that host for perfor‐
78 mance reasons.
79
80 --delete-package=<name>
81 specify package to delete. The option can be specified multiple
82 times
83
84 --description=<directory>
85 Path to the kiwi XML description. Inside of that directory there
86 must be at least a config.xml of *.kiwi XML description.
87
88 --ignore-repos
89 Ignore all repository configurations from the XML description.
90 Using that option is usually done with a sequence of --add-repo
91 options otherwise there are no repositories available for the
92 image build which would lead to an error.
93
94 --ignore-repos-used-for-build
95 Works the same way as --ignore-repos except that repository con‐
96 figurations which has the imageonly attribute set to true will
97 not be ignored.
98
99 --root=<directory>
100 Path to create the new root system.
101
102 --set-repo=<source,type,alias,priority,imageinclude,pack‐
103 age_gpgcheck,{signing_keys},components,distribution,repo_gpgcheck>
104 Overwrite the first repository entry in the XML description with
105 the provided information:
106
107 • source
108
109 source url, pointing to a package repository which must be in
110 a format supported by the selected package manager. See the
111 URI_TYPES section for details about the supported source loca‐
112 tors.
113
114 • type
115
116 repository type, could be one of rpm-md, rpm-dir or yast2.
117
118 • alias
119
120 An alias name for the repository. If not specified kiwi gener‐
121 ate an alias name as result of hex representation from uuid4.
122 The hex is used to uniquely identify the repository, but not
123 very expressive. We recommend to set an expressive and uniq
124 alias name.
125
126 • priority
127
128 A number indicating the repository priority. How the value is
129 evaluated depends on the selected package manager. Please re‐
130 fer to the package manager documentation for details about the
131 supported priority ranges and their meaning.
132
133 • imageinclude
134
135 Set to either true or false to specify if this repository
136 should be part of the system image repository setup or not.
137
138 • package_gpgcheck
139
140 Set to either true or false to specify if this repository
141 should validate the package signatures.
142
143 • {signing_keys}
144
145 List of signing_keys enclosed in curly brackets and delimited
146 by semicolon. The reference to a signing key must be provided
147 as URI format
148
149 • components
150
151 Component list for debian based repos as string delimited by a
152 space
153
154 • distribution
155
156 Main distribution name for debian based repos
157
158 • repo_gpgcheck
159
160 Set to either true or false to specify if this repository
161 should validate the repository signature.
162
163 --set-repo-credentials=<user:pass_or_filename>
164 For uri://user:pass@location type repositories, set the user and
165 password connected to the set-repo specification. If the pro‐
166 vided value describes a filename in the filesystem, the first
167 line of that file is read and used as credentials information.
168
169 --set-container-derived-from=<uri>
170 overwrite the source location of the base container for the se‐
171 lected image type. The setting is only effective if the config‐
172 ured image type is setup with an initial derived_from reference
173
174 --set-container-tag=<name>
175 overwrite the container tag in the container configuration. The
176 setting is only effective if the container configuraiton pro‐
177 vides an initial tag value
178
179 --signing-key=<key-file>
180 set the key file to be trusted and imported into the package
181 manager database before performing any operation. This is useful
182 if an image build should take and validate repository and pack‐
183 age signatures during build time. This option can be specified
184 multiple times.
185
187 Marcus Schäfer
188
190 2023, Marcus Schäfer
191
192
193
194
1959.25.16 Oct 16, 2023 KIWI::SYSTEM::PREPARE(8)