Commit Graph

918 Commits

Author SHA1 Message Date
Marcus Schäfer
a9eec5f71c
Update documentation
Rework troubleshooting chapter and add an article
about app security subsystems like selinux and their
potential influence on building images. Also update
the quickstart with a reference to the troublshooting
chapter. This Fixes #1891
2021-12-15 22:17:11 +01:00
Dan Čermák
af27425a85
Merge pull request #1944 from dcermak/use-pytest_container
Switch to pytest_container instead of custom conftest
2021-12-13 07:53:45 +01:00
Marcus Schäfer
b02c059c46
Bump version: 9.24.13 → 9.24.14 2021-12-06 09:59:28 +01:00
Marcus Schäfer
7e3297d9d3
Added support for setting up release version
Currently the release version is not set or set to '0'
for package managers which requires a value to operate.
However, in order to support leveraging the same description
across different releases it is important to have the
opportunity to specify a setting for the release version.
This commit adds a new optional attribute to the preferences
section which allows to specify a custom value which
serves as the release version:

<preferences>
    <release-version>TEXT</release-version>
</preferences>

If not specified the default setting as before applies.
Please note the release version information is currently
used in dnf and microdnf package managers only. It might
happen that it gets applied to the other package manager
backends as well. This will happen on demand though.
Related to Issue #1918. This Fixes #1927
2021-12-06 09:54:41 +01:00
Marcus Schäfer
a5c84a8a91
Disable intersphinx
intersphinx is a doc extension which links to the documentation of
objects in other projects whenever Sphinx encounters a cross-reference
that has no matching target in the current documentation set, it
looks for targets in the documentation sets configured in the
intersphinx_mapping. However, the kiwi docs do not use this feature
thus it can be disabled.
2021-12-05 13:59:17 +01:00
John Paul Adrian Glaubitz
c9f2aa669a Fix multiple minor spelling errors in documentation 2021-11-29 16:14:53 +01:00
Marcus Schäfer
d9de27ced4
Bump version: 9.24.12 → 9.24.13 2021-11-29 14:55:35 +01:00
Marcus Schäfer
ed523284f2
Add global --kiwi-file option
When building with kiwi a search on the kiwi main config
file is made inside of the given --description directory.
The search looks up for the file config.xml or *.kiwi.
So far there was no opportunity to specify another name.
This commit adds an option in the global area named:

    --kiwi-file name

which will make kiwi to lookup this file inside of the
given --description directory and fail if it does not
exist. This Fixes #1973
2021-11-29 12:23:26 +01:00
Marcus Schäfer
7e4191ccfd
Bump version: 9.24.11 → 9.24.12 2021-11-26 09:58:32 +01:00
Marcus Schäfer
4ac456b31f
Support this:// resource locator for includes
Allow include references like the following example:
<include from="this://include.xml"/>
2021-11-25 16:02:48 +01:00
Dan Čermák
736588ae30
Switch to pytest_container instead of custom conftest 2021-11-24 15:44:29 +01:00
Marcus Schäfer
5898a8a059
Bump version: 9.24.10 → 9.24.11 2021-11-24 12:19:10 +01:00
Marcus Schäfer
282529de8f
Do not force dracut into a compression setting
So far we called dracut with --xz which forces the initrd
to be xz compressed. There are other compression formats
used by the distributions and they might differe from xz.
The selection for a compression tool is done by a dist
configuration in dracut.conf.d which is provided by the
distributions as they see fit. For us this means not
forcing dracut into a specific compression setting allows
to make use of the distro provided setting and also
allows to change/override this setting by an overlay
file. This Fixes bsc#1192975
2021-11-24 12:15:47 +01:00
Marcus Schäfer
6c258d7e70
Bump version: 9.24.9 → 9.24.10 2021-11-23 15:10:26 +01:00
Marcus Schäfer
380b24b2c4
Added documentation about sharing backends
The kiwi boxbuild plugin supports several sharing
backends. Details about them and eventual pre-setup
steps prior use are mentioned in this document
2021-11-23 10:43:10 +01:00
Marcus Schäfer
1d45da176d
Bump version: 9.24.8 → 9.24.9 2021-11-22 22:27:44 +01:00
Marcus Schäfer
fd5553d76b
Bump version: 9.24.7 → 9.24.8 2021-11-22 17:18:07 +01:00
Marcus Schäfer
823da629d5
Bump version: 9.24.6 → 9.24.7 2021-11-16 16:29:49 +01:00
Marcus Schäfer
350ed05454 Allow to set sign keyfile in repository elements
This commit adds a new and optional child element <signing>
to the repository/source element as shown in the following
example:

<repository>
    <source path="...">
        <signing key="keyfile"/>
    </source>
</repository>

The collection of all keyfiles from all repositories will be
added to the keyring as used by the selected package manager.
Signing keys specified on the commandline and signing keys
specified in the image description will be combined.
This Fixes #1883
2021-11-16 10:15:46 -05:00
Marcus Schäfer
7935bdc2ed
Bump version: 9.24.5 → 9.24.6 2021-11-12 23:11:19 +01:00
Marcus Schäfer
f0d31f95ed
Bump version: 9.24.4 → 9.24.5 2021-11-12 14:45:03 +01:00
Marcus Schäfer
9cb68abcea Fixed include processing
This commit fixes several issue connected with the use of
the <include> directive:

First and foremost the XSLT chain was broken in a way that
the include XSLT in combination with the PrettyPrinter XSLT
were called not in the chain of stylesheets but together.
This results in XML descriptions which duplicated the content
and went invalid

Another change is, when the include XSLT is called in the chain.
This commit moves it to become the very first processing
instruction such that the included data is part of all subsequent
XSLT stylesheets. This also allows to use older schema versions
in included XML data and they get automatically converted through
the chain of XSLT stylesheets.

Last change is the evaluation of the from= attribute value. This
value is now interpreted as an URI. Currently only local URIs are
supported. The reason to do this is because XSLT when processing
a document resolves relative paths according to the file path
of the master document. As kiwi does not change the original
content that path with will be a /var/tmp location if one of
the XSLT stylesheets were used. The documentation for this change
was updated as well
2021-11-12 07:46:52 -05:00
Marcus Schäfer
db9ad0d663
Bump version: 9.24.3 → 9.24.4 2021-11-11 15:11:20 +01:00
Marcus Schäfer
b373a8d16d Drop support for cdrtools
Tools like mkisofs, genisoimage and friends are all unmaintained
and have found their substitute in xorriso for quite some time.
This commit deletes the code from kiwi which supported creation
of ISO images using the obsolete cdrtools collection. In addition
all hack code associated with these tools like mbr insertion via
isohybrid and things like that got dropped as well.
This Fixes #1908
2021-11-11 06:43:56 -05:00
Marcus Schäfer
eb02adfcb2
Bump version: 9.24.2 → 9.24.3 2021-11-03 17:40:51 +01:00
Marcus Schäfer
94de1336d8
Support custom partitions
In addition to the volume volume management settings also
allow to setup low level table entries like in the following
example:

<partitions>
    <partition name="var" size="100" mountpoint="/var" filesystem="ext3"/>
</partitions>
2021-11-03 13:31:17 +01:00
Marcus Schäfer
090284db1c
Bump version: 9.24.1 → 9.24.2 2021-10-22 17:41:18 +02:00
Marcus Schäfer
d32661888b
Add support for custom result bundle naming
Allow to specify a bundle_format per <type> which is used
at the time of the result bundle creation to create image
output names matching the provided pattern.
This Fixes #1943
2021-10-21 11:13:49 +02:00
Marcus Schäfer
4467c1e4d9
Bump version: 9.24.0 → 9.24.1 2021-10-15 10:02:06 +02:00
Marcus Schäfer
9940caffde
Added documentation for kiwi stackbuild plugin
Restructure the documentation to put all plugin documentation
under its own category. Add a chapter about the stackbuild
plugin, it's concepts and use cases. This Fixes #1907
2021-10-08 18:07:20 +02:00
Marcus Schäfer
1f545b82c1
Bump version: 9.23.63 → 9.24.0 2021-10-07 09:54:22 +02:00
Marcus Schäfer
ef05ecc36e
Add support for toplevel include directive(s)
On the toplevel of an image description you can now
specify include directive(s) like in the following
example

<image ...>
    ...
    <include from="filename_a.xml"/>
    ...
    <include from="filename_b.xml"/>
</image>

At the place of their occurrence the include statement
will be replaced with the contents of the given filename.
The implementation is based on a XSLT stylesheet and
applies very early in the process. The stylesheet reads
the contents of the given file as XML document().
Thus only valid XML documents gets accepted by this
include concept. This Fixes #1929 and is related to
Issue #1918
2021-10-07 09:50:38 +02:00
Marcus Schäfer
8a5fdc0078
Merge pull request #1942 from OSInside/fix_pxe_docs_and_error_reporting
Fix pxe docs and error reporting
2021-10-07 09:45:04 +02:00
Marcus Schäfer
736887628e
Bump version: 9.23.62 → 9.23.63 2021-10-06 16:06:55 +02:00
Marcus Schäfer
d551e47647
Fixed legacy PXE documentation
The documentation for building a legacy pxe image was not
using the profiles (Flat or Compressed) as the actual image
description for this example requires it. This Fixes #1923
2021-10-06 14:38:25 +02:00
Marcus Schäfer
7e0927e8d5
Allow logfile option to log on stdout
The option setting '--logfile stdout' is now a special form
and logs the messages usually written to a file to stdout
instead. This is handy if all messages of the build are
requested but the --debug switch is not because it does more
than that, e.g calling scripts through debug'able screen
sessions
2021-10-05 17:25:25 +02:00
Marcus Schäfer
dc8af34d84
Bump version: 9.23.61 → 9.23.62 2021-09-23 16:56:32 +02:00
Marcus Schäfer
4b531c0c47
Bump version: 9.23.60 → 9.23.61 2021-09-23 15:35:35 +02:00
Marcus Schäfer
7fa6cda579
Run scripts via a screen session in debug mode
When creating a custom script it usually takes some iterations of
try and testing until a final stable state is reached. To support
developers with this task kiwi calls scripts associated with a
screen session. The connection to screen is only done if kiwi
is called with the --debug option.
2021-09-22 11:48:47 +02:00
Marcus Schäfer
765f509b4a
Bump version: 9.23.59 → 9.23.60 2021-09-21 18:47:59 +02:00
Marcus Schäfer
0174921669
Bump version: 9.23.58 → 9.23.59 2021-09-21 18:43:46 +02:00
Marcus Schäfer
16e5b2994f
Bump version: 9.23.57 → 9.23.58 2021-09-15 12:06:28 +02:00
Marcus Schäfer
d1f8789af4
Bump version: 9.23.56 → 9.23.57 2021-09-15 09:50:12 +02:00
Marcus Schäfer
58f5550768
Bump version: 9.23.55 → 9.23.56 2021-09-10 23:52:50 +02:00
Marcus Schäfer
fece3efa13
Bump version: 9.23.54 → 9.23.55 2021-09-09 10:00:04 +02:00
Marcus Schäfer
7616114348
Added support for building rpm package from bundle
With the new option --package-as-rpm it is possible to
call the kiwi result bundler such that the image build
results gets packaged into an rpm. I think this is a
handy feature to transport image builds via repositories
2021-09-08 16:25:32 +02:00
Marcus Schäfer
bea4f651d4
Bump version: 9.23.53 → 9.23.54 2021-09-07 18:02:22 +02:00
Marcus Schäfer
702326d848
Merge pull request #1903 from OSInside/allow-archive-target
Allow target dir for archive
2021-09-07 18:01:41 +02:00
Jesus Bermudez Velazquez
fd52237478
Allow target dir for archive
- Add the option to specify a target directory
  to unpack the archive
- Update doc for target dir attribute

This Fixes #1794
2021-09-07 15:13:24 +01:00
Marcus Schäfer
238355e1f3
Bump version: 9.23.52 → 9.23.53 2021-09-03 08:48:20 +02:00