Commit Graph

5804 Commits

Author SHA1 Message Date
Marcus Schäfer
71608c1122
Fixed use of fscreateoptions for iso type
The information for fscreateoptions was not passed along to the
tooling if a custom filesystem attribute was specified.
This Fixes #2681
2024-11-25 16:30:53 +01:00
Marcus Schäfer
c50183f220
Bump version: 10.1.18 → 10.2.0 2024-11-21 11:52:53 +01:00
Marcus Schäfer
aa0c4f7f74
Add selinux test build to TW
Also update derived docker integration test to latest Leap
2024-11-21 11:43:33 +01:00
Marcus Schäfer
231c3db62c
Merge pull request #2528 from OSInside/confidental_compute_s390
Confidential compute s390
2024-11-21 11:26:50 +01:00
Marcus Schäfer
43cd86dfaf
Add random key support for LUKS encryption
Allow to pass luks="random". In random mode use the
generated keyfile as the only key to decrypt. This is
only secure if the generated initrd also gets protected
e.g. through encryption like it is done with the secure
linux execution on zSystems
2024-11-21 10:24:04 +01:00
Marcus Schäfer
1d9f2d7ff2
Added development group in pyproject setup
generateDS and other tools are needed and were forgotten
to be added when we deleted the tox dependency
2024-11-21 10:24:04 +01:00
Marcus Schäfer
b922d8ba2d
Added IBM Secure Execution support on s390
IBM SEL(Secure Execution for Linux) is supported for s390
KVM guests. SEL images used to start a confidential computing
protected guest contain an encrypted boot image which encapsulates
the kernel the initrd and the bootparams. The encrypted Image is
provided by the KVM/hypervisor to the Embedded zFirmware of the
system (the ultravisor device). The decryption keys are hardware
based and each system has an individual keypool unique to that
system. The root filesystem is LUKS encrypted with a random key
produced by kiwi at build time and kept inside of the initrd which
exists only inside of the encrypted boot image and the encrypted
rootfs to allow kernel updates. The commit to support secure
execution also comes with an integration test that provides
profiled image builds to target SUSE's LinuxONE as well
as IBM Cloud systems.
2024-11-21 10:24:04 +01:00
Neal Gompa (ニール・ゴンパ)
8ab85d3d47
Merge pull request #2618 from OSInside/fix-application-id-schema
kiwi/schema: Fix allowed value type for ISO publisher and application ID
2024-11-20 17:21:43 +01:00
Neal Gompa
1c0d1dd98a kiwi/schema: Fix allowed value type for ISO publisher and application ID
According to the spec, this should be constrained to 128 characters
but also allow quite a few other special characters (as well as spaces).
We didn't allow spaces in application ID, but allowed too much for Publisher.

Now we set up both correctly.
2024-11-19 20:14:58 -05:00
Neal Gompa (ニール・ゴンパ)
2faacfbb95
Merge pull request #2677 from OSInside/fix_profile_setup
Fix setup of kiwi environment variables
2024-11-19 17:39:22 +01:00
Marcus Schäfer
e44c7f0e55
Fix setup of kiwi environment variables
Some kiwi env vars are initialized with an empty value
and not overwritten if another value is provided. For
the selected variables an empty value setting is not
allowed because the schema also enforces the value to
be set at least once. In addition a helpful option
named --print-kiwi-env was added to the 'image info'
command which allows to print the environment variables
and their values.
2024-11-17 23:40:29 +01:00
Marcus Schäfer
cade4b4cb0
Merge pull request #2674 from OSInside/containers_sections_obs_integration
Added containers integration with OBS
2024-11-13 11:24:18 +01:00
Marcus Schäfer
24f32d1bce
Added containers integration with OBS
When building in the Open Build Service (OBS) there is no way
to create outgoing connections from the build workers. To allow
the <containers> section to fetch containers from the SUSE
registry we need to apply an OCI URI translation into a local
path. The actual OCI container image is expected to be provided
by the obs backend on the worker. Along with this commit also an
integration test named test-image-disk-containers is provided.
This Fixes jira#OBS-351
2024-11-11 16:35:59 +01:00
Marcus Schäfer
463f044df6
Merge pull request #2673 from OSInside/remove_tox
Remove tox dependency
2024-11-06 09:26:49 +01:00
Marcus Schäfer
50c96d4dba
Fix rendering of SUSE docs
The SUSE documentation is produced through a conversion
of the ReST source into docbook. The name kiwi is reserved
in the index and needs to be referenced as kiwi-ng when
used as command.
2024-11-05 18:03:25 +01:00
Marcus Schäfer
1ec3b25e91
Remove tox dependency
tox was used as sort of a make target to run unit tests
and more in a python virtualenv. However, since we switched
everything to poetry it's no longer needed to let tox create
the python virtual environments. This commit moves the tox
targets into the Makefile and adapts the github workflow
files accordingly. In addition the scripts container based
tests were re-activated and fixed such that they succeed
again.
2024-11-05 18:03:25 +01:00
Marcus Schäfer
eade3d4d26
Fix make build target
Move the actions done by the tox target into the
build target and call them there in a clean and easy
to spot sequence. There is no need to call tox to
prepare for the package submission, instead the
checks and poetry runs to prepare for the package
target should be called directly as part of the
build target. In the future we might get rid of
tox completely.
2024-11-01 13:31:20 +01:00
Marcus Schäfer
41dee12bba
Bump version: 10.1.17 → 10.1.18 2024-11-01 13:08:12 +01:00
Marcus Schäfer
43bb97c621
Fixed zipl caller environment
zipl gets confused with an active sysfs mount inside
the root tree at call time of zipl. This commit
umounts the /sys bind mount in the image tree prior
calling zipl
2024-10-31 23:33:45 +01:00
Marcus Schäfer
3780b52186
Fix s390 test-image-disk build
Add missing kernel links used by suse tools
2024-10-31 17:46:31 +01:00
Marcus Schäfer
0e986a9121
Bump version: 10.1.16 → 10.1.17 2024-10-31 10:01:54 +01:00
Marcus Schäfer
26a6f66367
Merge pull request #2672 from OSInside/fix_project_dependencies
Add pytest-container as optional dependency
2024-10-31 09:57:00 +01:00
Marcus Schäfer
7e0cd766c3
Merge branch 'erofs_testing' 2024-10-31 09:54:34 +01:00
Marcus Schäfer
72f2e7ae91
Fix networking in erofs integration test
The network setup was systemd-networkd based but
the provided network config was not for systemd
2024-10-31 09:52:32 +01:00
Marcus Schäfer
5042d331c4
Add pytest-container as optional dependency
The pyproject.toml listed pytest-container as dependency
but it is used only to run the container based integration
tests for the shell helper methods. For building the package
this dependency should not be pulled in
2024-10-30 16:16:50 +01:00
Marcus Schäfer
2780685666
Fix coloring of build_status.sh flags
Depending on the place of the status flag the color
setup might fail. This commit fixes it
2024-10-30 13:49:02 +01:00
Marcus Schäfer
99ba0f27a0
Merge pull request #2605 from OSInside/py3.13-testing
CI: Add testing against Python 3.13
2024-10-23 15:45:40 +02:00
Neal Gompa
0e87fe5fa9
CI: Add testing against Python 3.13
Python 3.13 is shipping in Fedora Linux for Fedora Linux 41, so we
should ensure kiwi is tested against it. The testing setup is
based on the latest development version of 3.13 as it is not
yet released.
2024-10-23 15:40:21 +02:00
Marcus Schäfer
c98ec19142
Bump version: 10.1.15 → 10.1.16 2024-10-23 12:21:32 +02:00
Marcus Schäfer
3a4b1b157c
Merge pull request #2671 from OSInside/fix_erofs_requirement
Fix erofs requires in spec
2024-10-23 12:20:58 +02:00
Marcus Schäfer
7cfcb93c0f
Fix erofs requires in spec
erofs-utils for SUSE only exists in Tumbleweed. The
former conditon would also add the requirement for ALP
and SLFO which is wrong. This commit fixes it
2024-10-23 10:23:36 +02:00
Neal Gompa (ニール・ゴンパ)
f525c0f21f
Merge pull request #2669 from OSInside/vagrantconfig_required_with_vagrant_disk_format
Add vagrantconfig rule for vagrant format
2024-10-22 14:14:50 -04:00
Marcus Schäfer
96cda0dd5d
Add vagrantconfig rule for vagrant format
If the format="vagrant" attribute is set, a vagrantconfig
section becomes mandatory. This commit enforces this rule
on the schema. This Fixes #2666
2024-10-22 10:53:25 +02:00
Marcus Schäfer
5416ae8f60
Bump version: 10.1.14 → 10.1.15 2024-10-21 15:01:08 +02:00
Neal Gompa (ニール・ゴンパ)
0bfbb62ed2
Merge pull request #2664 from OSInside/container_import
Add new registry section
2024-10-21 08:41:44 -04:00
Marcus Schäfer
a349c055c4
Add new containers section
Allow to specify references to OCI containers in the
image description like in the following example:

<containers source="registry.suse.com" backend="podman">
    <container name="some" tag="some" path="/some/path"/>
</containers>

During the kiwi process the containers are fetched into a
temporary location and a systemd service is configured to
one time load the containers into the local registry at
first boot of the system. This Fixes #2663
2024-10-19 18:30:45 +02:00
Marcus Schäfer
eca8201508
Merge pull request #2665 from OSInside/simplify-DiskFormat
Turn DiskFormat into an ordinary class
2024-10-18 15:41:52 +02:00
Neal Gompa (ニール・ゴンパ)
8f4dc32124
Merge pull request #2667 from OSInside/debian_bootstrap_and_csm_fixes
Debian bootstrap and csm fixes
2024-10-17 15:21:31 -04:00
Dan Čermák
6cfc3912ab
Turn DiskFormat into an ordinary class
- it does not need to be an abstract base class
- use f-strings where applicable instead of format()
- change return type of _custom_args_for_format from list to tuple
2024-10-17 21:14:42 +02:00
Marcus Schäfer
dc713212f2
Evaluate eficsm everywhere
Fixed _supports_bios_modules() to take an eventually
provided eficsm setup into account. The grub config still
searches for i386 grub modules even if eficsm="false"
is set.
2024-10-17 21:02:31 +02:00
Marcus Schäfer
cbdddefcff
Fixed debian bootstrap script calls
Run scripts as commands with their native shebang and not
through bash. Not all debian package scripts uses bash, some
of them uses sh which can be a link to dash or other
interpreters. This Fixes #2660
2024-10-17 21:02:31 +02:00
Marcus Schäfer
0e24761929
Fixed sphinx_rtd_theme setup
Delete obsolete display_version attribute
2024-10-17 21:01:46 +02:00
Marcus Schäfer
519d15d40b
Update TW integration tests
The package x86info was dropped from TW
2024-10-17 18:30:36 +02:00
Marcus Schäfer
72d7860c4c
Bump version: 10.1.13 → 10.1.14 2024-10-04 16:21:36 +02:00
Neal Gompa (ニール・ゴンパ)
0fdd55817f
Merge pull request #2661 from OSInside/apt_bootstrap_package_scripts
Run package scripts in apt bootstrap phase
2024-10-04 08:42:01 -04:00
Marcus Schäfer
15b4bbcd8d
Support older apt versions for bootstrap
This Fixes #2660
2024-10-04 11:32:56 +02:00
Marcus Schäfer
ad50bc7d32
Run package scripts in apt bootstrap phase
The bootstrap procedure based on apt only runs a manual
collection of package scripts. This commit refactors the
code that unpacks the bootstrap packages to a python
implementation and adds a method to run the bootstrap
scripts from all packages resolved by apt.
2024-10-04 11:32:56 +02:00
Marcus Schäfer
d1645a7f66
Revert "Install usrmerge for Debian integration test"
This reverts commit 95ac861741.
Solution needs to be provided in code
2024-10-04 11:14:38 +02:00
Marcus Schäfer
95ac861741
Install usrmerge for Debian integration test 2024-10-04 10:10:10 +02:00
Marcus Schäfer
d79e183e80
Bump version: 10.1.12 → 10.1.13 2024-09-26 14:12:25 +02:00