Commit Graph

219 Commits

Author SHA1 Message Date
Marcus Schäfer
3220e357d3
Add schema upgrade opportunity for old schemas
kiwi files using a schema version < 7.4 are no longer supported
by kiwi >= v10.x.x. Thus this commit provides the required
XSL stylesheets to upgrade older schemas to v74 such that they
can be consumed by the latest kiwi version. The needed xsltproc
instruction is placed on the main page of the documentation.
2024-04-04 16:52:25 +02:00
Marcus Schäfer
d3fff78cfb
Update schema version in spec file 2024-03-13 08:35:17 +01:00
Marcus Schäfer
74d80982b5
Fix s390 tools and grub requirement
On Fedora/RHEL this is named s390utils and there is no grub2
2024-03-10 11:28:35 +01:00
Neal Gompa
2c35655c7f Ensure we use a compatible docopt-ng version
To ensure our trick to switch between docopt and docopt-ng works,
we need to have a higher minimum version for docopt-ng where
compatibility with the original docopt was restored.
2024-03-06 21:33:26 -05:00
Neal Gompa
7125211f9b
Switch to Poetry and use pyproject.toml definitions
This allows kiwi to be built, developed, tested, and installed
through Poetry. This also raises the minimum Python version to 3.9.
2024-03-06 09:28:26 +01:00
Marcus Schäfer
03365689fb
Add changelog fix file for commit deb6ca
The commit used a wrong e-mail address which should not
land in the created changes file for the packaging
2024-02-28 17:12:33 +01:00
Marcus Schäfer
d3ea590867
Added requirement for xmltodict to spec
Actually the real issue to this defect seems to live in the
anymarkup source code. It seems that the import of xmltodict
at the beginning of the core module is optional, but later on
when handling XML xmltodict seems to be mandatory, see here:
https://github.com/bkabrda/anymarkup-core/blob/08896a8215819edcc413e3f2588518046
9a4c2ed/anymarkup_core/__init__.py#L210-L229. Because this
issue can result in a "ImportError: Can't parse xml: xmltodict not installed"
turning kiwi into a bad exit condition I propose to add
this python requirement to the kiwi spec as a workaround and
try fixing the anymarkup packaging and module setup upstream
in addition. To my knowledge all relevant distributions
provides xmltodict
2024-02-24 15:42:00 +01:00
Marcus Schäfer
b781feaea0
Follow up fix for drop obsolete C tools from kiwi
The spec file make call to build the C code was forgotten
to be deleted
2024-02-12 09:54:26 +01:00
Marcus Schäfer
18347989dd
Drop PDF build of the documentation
The kiwi.pdf file as provided in the kiwi-man-pages package
was never really used by our users but comes with a huge
dependency chain to LaTex. We provide the documentation
online as well as converted to DocBook from where all other
formats could be derived. Thus there is no need for us to
produce an extra PDF document which is imho never consulted.
In addition to this change also the contributing chapter has
been reworked. Due to recent changes and drop of obsolete
components from kiwi as well as the effort to move the development
setup to poetry, there is only one non python tool needed
for the development of kiwi. The check for this tool has been
moved into the Makefile and all other checks formerly done
in the helper/install_devel_packages script were deleted.
2024-02-11 15:11:39 +01:00
Marcus Schäfer
c2766b23a6
Drop obsolete C tools from kiwi
For building custom initrd images kiwi provided some
optional helper tools. All these C written tools are
old and outdated and either not useful anymore or
replaced by other tools that are part of the distribution
matrix we support. Thus with the move to the next
major release those can go away. This also include the
package kiwi-tools which was used to provide them
2024-02-11 10:54:58 +01:00
Marcus Schäfer
54f92d2a9f
Drop support for syslinux/isolinux
SYSLINUX has been abandoned for several years now, and it does not
even work with modern versions of the filesystems supported in kiwi.
This commit drops it and Fixes #2433
2024-01-26 21:25:37 +01:00
Neal Gompa
5a2a278a6e package: Drop unused xorriso dep on dracut-kiwi-live subpackage
We do not actually use xorriso anywhere inside of the dracut module,
nor do we pull in any utilities from the xorriso package into the
generated initramfs anyway.

Fixes: https://github.com/OSInside/kiwi/issues/2404
2023-12-13 15:31:56 -05:00
Marcus Schäfer
c685c2d129
Don't make toml a requirement 2023-11-09 09:04:44 +01:00
Marcus Schäfer
2980ad1926
Support TOML markup
Allow to use TOML markup for the kiwi image description
This Fixes #2372
2023-09-13 12:07:24 +02:00
Neal Gompa
3cc03160d4 PKGBUILD: Drop unused Python dependencies
We haven't used some of these dependencies in years...
2023-08-31 10:11:23 -04:00
Evan Goode
b5b3c79ca6
Require DNF 5 in Fedora >= 41, not Fedora > 38
The switch to DNF 5 has been postponed to (likely) Fedora 41.
2023-08-15 18:06:13 -04:00
Dan Čermák
210ab23c2d
rpm spec: add missing requires of typing_extensions for python < 3.8 2023-08-01 10:11:05 +02:00
Dan Čermák
718b82bf01
rpm spec: bump copyright year 2023-08-01 09:58:26 +02:00
Marcus Schäfer
a60183535f
Fixed mail address in spec file 2023-07-24 09:09:51 +02:00
Marcus Schäfer
b7a64febea
Delete (py)xattr module requirement
The required functionality is provided by the core os library
2023-07-20 17:07:08 +02:00
Marcus Schäfer
ae6effd5de
Change package manager dnf to dnf4
With dnf5 there is a successor for dnf but there will also
be a transition period where there will be both, the former
dnf and the new dnf5 available. For a clear distinction
between the two we got the recommendation from the RedHat
team to support both in different namespaces. This commit
now implements a backward compatible change for kiwi which
includes the following modifications:

* XSL stylesheet for automatic schema transformation from

  <packagemanager>dnf</packagemanager> to
  <packagemanager>dnf4</packagemanager>

* Code copy of dnf API interface from

  PackageManagerDnf -> PackageManagerDnf4
  RepositoryDnf -> RepositoryDnf4

* Deprecation of former Dnf API interface

The code change here will force developers to adapt
their code if they used RepositoryDnf / PackageManagerDnf
classes in their python code. After this change developers
will be dropped into a raise condition which exits kiwi
at the time of the call. Related to Issue #2300
and Issue #2262
2023-06-12 17:44:06 +02:00
Marcus Schäfer
e8bb1cd04b
Add support for dnf5 package manager
dnf5 is the next generation of the dnf package manager.
dnf5 is not a drop in replacement to dnf which is the reason
why this commit adds a new interface class for package and
repository management under a new name: dnf5. Beginning with
Fedora >= 39 dnf5 will be the standard. Thus the requirements
on the packaging level were adapted too.
This Fixes #2300
This Fixes #2262
2023-06-12 13:58:36 +02:00
Jiri Srain
e1b6faa874 Do not depend on dnf for SUSE ALP 2023-05-22 15:13:26 +02:00
Neal Gompa
f0e056375f
Merge pull request #2291 from OSInside/cpio_archive
Allow to create plain cpio archives
2023-05-16 07:22:49 -04:00
Marcus Schäfer
76664d0ba5
Added appx-util as WSL requires for Fedora/RHEL
Make sure the kiwi-systemdeps-containers-wsl meta package
pulls in the required tools for Fedora/RHEL when building
WSL containers. This is a followup to #2286
2023-05-16 10:05:22 +02:00
Marcus Schäfer
0a6f192c9a
Add cpio to core systemdeps requires list 2023-05-16 10:00:11 +02:00
Marcus Schäfer
60d9c077a6
Split container systemdeps in OCI and WSL 2023-04-21 21:32:21 +02:00
Marcus Schäfer
d68605d246
Update kiwi-systemdeps-containers requires list
Do not strictly require fb-util-for-appx. In order to create
WSL containers fb-util-for-appx is a requirement but usually
users create OCI containers and WSL containers are still a
niche case. Thus it's ok to reduce the requirement into a
recommends. This Fixes #2284
2023-04-20 14:46:59 +02:00
David Cassany
0947fce33a
Use parted only in s390 arch
This commit ensures parted is only called in dracut-kiwi-lib for s390
arch. It also fixes the spec to only require parted for
s390 builds.

In addition parted requirement has been removed from dracut-kiwi-live
package since parted is not used in any other dracut module beyond
kiwi-lib.

Signed-off-by: David Cassany <dcassany@suse.com>
2023-04-12 11:07:00 +02:00
Marcus Schäfer
d7f5d64e36
Fixed build of dracut-kiwi-verity
The spec file was missing the package definition to actually
create the dracut-kiwi-verity package. In addition the fixed
setting to the C standard 17 caused build errors for me on
distributions that uses C standard 11/12.
2023-03-16 15:55:56 +01:00
Marcus Schäfer
c4643ea15a Add dracut-kiwi-verity dracut module package
When building an image with an embedded verity hash via the
embed_verity_metadata="true" type attribute it is required
to setup the device map at boot time accordingly. The dracut
module in this commit provides the needed tooling as a
POSIX C implementation which is able to read the kiwi embedded
verityhash from the offset of the partition. Kudos goes to
Isaac True <isaac.true@canonical.com>

Co-authored-by: Isaac True <isaac.true@canonical.com>
Signed-off-by: Isaac True <isaac.true@canonical.com>
2023-03-16 11:09:57 +01:00
Joachim Gleissner
ad430a9b08
Use module anymarkup-core instead of anymarkup
Use 'anymarkup-core' directly instead of wrapper 'anymarkup'.
2023-03-10 13:00:14 +00:00
Marcus Schäfer
28955561d9
Provide schema version v7.5 in spec 2022-03-09 18:19:31 +01:00
Marcus Schäfer
09d3b85a47
Fixed unconditional grub2 package requirement
The grub2 package does not exist on all distributions
as a name provider independent of the architecture.
On for example Debian and Ubuntu the packages are
handled differently and grub2 is only provided on
supported architectures. Thus the spec file should
set the grub2 requirement only if the distribution
provides it in any case
2022-03-04 14:05:27 +01:00
David Cassany
4ada2db60b
Update outdated PKGBUILD for Arch Linux
Signed-off-by: David Cassany <dcassany@suse.com>
2022-01-21 19:49:11 +01:00
Marcus Schäfer
9a7accdc49
Fix requirements for kiwi-systemdeps-filesystems
Extend btrfs condition applying for EL8 to apply for EL9 too
2022-01-18 06:37:58 -05:00
Neal Gompa
fb440c57e7 Add util-linux dep for -systemdeps-disk-images subpackage
Without this dependency, kiwi fails to work properly in minimal image
build environments, like in a mock chroot where util-linux is not installed.
2022-01-02 09:19:42 -05:00
Marcus Schäfer
bf5c9d0d55 Revert "Cleanup xattr requirement"
This reverts commit 6754b3f9e2.
It has turned out that SLE15 still uses the other xattr
module :/
2021-11-02 07:32:41 -04:00
Marcus Schäfer
6754b3f9e2 Cleanup xattr requirement
There is no version of suse we support that provides
the old xattr module. Thus the requirement can be set
in a clean way to pyxattr and the setup.py trickery
can be deleted
2021-10-27 09:42:02 -04:00
Marcus Schäfer
d26d66b86e
Added lsof to kiwi-systemdeps-core 2021-10-20 22:57:44 +02:00
Marcus Schäfer
4981d3587d
Added missing python-simplejson to pkgbuild
Added missing python-simplejson requirement to the
archlinux pkgbuild package template
2021-10-19 15:24:44 +02:00
Marcus Schäfer
cded86afec
Add support for portable result data (#1949)
In addition to the serialized Result instance kiwi.result
file this commit also creates a portable version of this
information in kiwi.result.json. Only the information that
can be expressed as json document is part of the portable
version. This is related to Issue #1918
2021-10-12 18:31:49 -04:00
Marcus Schäfer
8bc1a819b3
Added mdadm to requires for systemdeps
When building raid based images the buildhost needs mdadm.
In addition rework the place to require disk based tools.
Most of them were added to the filesystem systemdeps but
belong to the disk systemdeps
2021-10-06 16:13:58 +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
Dan Čermák
91b56dc670
Remove util-linux-systemd & util-linux Requires from dracut-kiwi-overlay
These dependencies are pulled in via dracut-kiwi-lib.
2021-06-30 14:26:20 +02:00
Dan Čermák
4e297a934a
Add missing util-linux-systemd Requires to dracut-kiwi-[live,libs] 2021-06-30 14:24:50 +02:00
Dan Čermák
186b2bd7f7
Add missing util-linux-systemd dependency to dracut-kiwi-overlay
The script kiwi-overlay-root.sh requires lsblk which is provided by
util-linux-systemd. If that package is missing in the final image, then booting
an overlayroot image hangs with:

dracut-pre-mount[480]: //lib/dracut/hooks/pre-mount/30-kiwi-overlay-root.sh: line 46: lsblk: command not found
2021-06-23 16:15:25 +02:00
Marcus Schäfer
47f307e9bf
Fixed spec file on Debian tool settings
debootstrap should always come with dpkg because we don't
want to handle the architecture names used on Debian when
dpkg knows them better than we do. since debootstrap itself
considers the possibility of being called without dpkg on
the system we generate the dependency by a spec change
here. This Fixes #1778
2021-04-19 10:15:21 +02:00
Marcus Schäfer
341ed2061f
Added openssl to the core requires
openssl is used in kiwi to construct a password hash
if the plaintext password feature for user settings
is used. This Fixes bsc#1184128
2021-04-12 10:43:33 +02:00
Marcus Schäfer
93d72e78dc
Change packagemanager setting from apt-get to apt
In kiwi we use the name of the section as package name to install this
package manager capability. However on Debian based distros there is
no package named apt-get. There is only a package named apt which
provides a tool named apt-get. To avoid inconsistencies like we had it
in Issue #1735 and to bring this setting in line with all other
packagemanager settings the setting was moved to just apt.
This Fixes #1738
2021-03-15 16:13:02 +01:00