Commit Graph

6379 Commits

Author SHA1 Message Date
Marcus Schäfer
e5b14c8953
Add check_checkmedia_used_with_msdos_table
Add check_checkmedia_used_with_msdos_table runtime check
to check if the used partition table type is compatible
with the selected checkmedia/tagmedia tool. So far only
plain MBR tables are supported bei checkmedia.
This Fixes #2722
2026-03-03 15:50:37 +01:00
Neal Gompa (ニール・ゴンパ)
8beae9f913
Merge pull request #2963 from OSInside/fix_ovftype_docs_and_values
OVA support has been moved to open-vmdk
2026-03-02 08:45:41 -08:00
Marcus Schäfer
1172ed6e5e
OVA support has been moved to open-vmdk
With the move to open-vmdk the only ovftype supported is
vmware. Should there be support for other OVA platforms
in the open-vmdk project we are going to add them on
demand. This Fixes #2627
2026-03-02 17:33:54 +01:00
Marcus Schäfer
33ebb4a54a
Merge pull request #2962 from OSInside/aws_isolated_compute_image
Add confidential compute image for AWS
2026-03-02 17:20:02 +01:00
Marcus Schäfer
9387737714
Add confidential compute image for AWS
Add a Trusted Execution Environment in form of an image as
a read-only system that is also dm-verity baked. The image
build provides PCR measuerd UKI image (kernel+initrd+bootloader).
The PCR values can be checked against the attestation document
and can also serve as AWS KMS key to enforce boot restrictions.
The image includes an example workflow in form of an enclave
image also build via kiwi using the native eif_build tool from
AWS. The enclave runs a little server/client example application
which creates the attestion document and sends the enclave
PCR measurements as response back to the Trusted Execution
instance. The image serves as example into the AWS Nitro TPM
Attestation and AWS Nitro Enclaves services to establish a
confidential compute workflow.
2026-03-02 17:14:28 +01:00
Marcus Schäfer
5d08d681ad
Bump version: 10.2.42 → 10.2.43 2026-03-02 13:03:56 +01:00
Neal Gompa (ニール・ゴンパ)
09101e70e2
Merge pull request #2961 from OSInside/fix_resolve_package_list_for_metalink
Update image info --add-repo option argument
2026-03-02 03:30:53 -08:00
Marcus Schäfer
e8489b9303
Update documentation
Add table of supported distributions with better visibility
on the main page
2026-03-02 12:26:16 +01:00
Marcus Schäfer
7513b86d91
Update image info --add-repo option argument
Update the --add-repo argument for image info to work
in the same way as it can be specified in the system prepare/build
commands. This now also allows for using metalink repos from
the commandline as follows:

    kiwi-ng image info \
        --description build-tests/x86/rawhide/test-image-erofs/ \
        --resolve-package-list \
        --ignore-repos \
        --add-repo 'https://mirrors.fedoraproject.org/metalink?repo=rawhide&arch=x86_64,,,,,,,,,,metalink'

This Fixes #2908
2026-03-02 10:47:18 +01:00
Frank Schreiner
eaba7e1055
retry postinst configure with second parameter '0'
retry `postinst configure` with second parameter '0'

As described in #2956 some newer postinst scripts like the one of
libselinux1 fail when called without the second parameter. On the other
hand it turned out that older versions like libgcrypt20 in Debian 12
fail installation if the get a second paramter because of faulty
implmentation.

With this patch kiwi calls it the old way without a second parameter and
retries with 0 as old version if it fails on the first attempt.

* Update unit tests

---------

Co-authored-by: Marcus Schäfer <marcus.schaefer@gmail.com>
2026-02-26 17:33:27 +01:00
Neal Gompa (ニール・ゴンパ)
6d954a4a21
Merge pull request #2958 from OSInside/fix_setup_of_rootpart_uuid_in_profile
Fixed setup of kiwi_rootpartuuid in profile
2026-02-25 05:23:34 -05:00
Marcus Schäfer
acafda96fe
Merge pull request #2957 from M0ses/fix_issue_2956
pass version 0 to `postinst configure`
2026-02-25 11:04:47 +01:00
Marcus Schäfer
40178c979f
Fixed setup of kiwi_rootpartuuid in profile
The PARTUUID value for the root partition is expected
to be present in the profile for any build time.
However, due to a bug certain layouts e.g LUKS or
RAID did try to retrieve the partition UUID from
the wrong device. This commit fixes it.
This Fixes #2949
2026-02-24 16:59:42 +01:00
Frank Schreiner
86151ddb4d
pass version 0 to postinst configure
Fixes: #2956

This patch avoids problems when building images for current Debian Sid
which currently is raising the following error:

```
[   59s] [ ERROR   ]: 08:20:03 | KiwiDebianBootstrapError: KiwiCommandError: chroot: stderr: /kiwi_debpost.rhgtuuvo/libselinux1.deb/postinst: 4: 2: parameter not set
```
2026-02-24 11:47:13 +01:00
Neal Gompa (ニール・ゴンパ)
ae738e3969
Merge pull request #2955 from OSInside/fix_apt_pacman_repo_instances_for_use_with_unsupported_arguments
Fix RepositoryApt and RepositoryPacman instances
2026-02-22 18:54:23 -05:00
Neal Gompa (ニール・ゴンパ)
48c4c28efb
Merge pull request #2954 from OSInside/add_arch_attribute_to_profile_requires
Add support for arch attribute in profile requires
2026-02-22 18:53:52 -05:00
Marcus Schäfer
d31556e74e
Fix RepositoryApt and RepositoryPacman instances
Some arguments are not supported/implemented with these
repository classes. Make sure to sort them out and log
a warning that their use has no effect.
This Fixes #2953
2026-02-22 21:38:55 +01:00
Marcus Schäfer
512b86d8c0
Add support for arch attribute in profile requires
Allow to specify the arch attribute in the <requires>
sub section of a <profile> definition.
This Fixes #2948
2026-02-22 20:58:34 +01:00
Neal Gompa (ニール・ゴンパ)
8b45eedf7b
Merge pull request #2952 from OSInside/fix_repo_alias_setup_from_cmdline
Fix repo alias setup when set from cmdline
2026-02-18 10:44:04 -05:00
Marcus Schäfer
a5758425f7
Fix repo setup for rawhide integration tests
Use OBS project config repos instead of a static
list in the kiwi file
2026-02-18 15:17:19 +01:00
Marcus Schäfer
0449534a2a
Fix repo alias setup when set from cmdline
Using --add-repo/--set-repo options on the commandline
allows to skip the repo alias setting by passing in an empty
value. That empty value however caused the alias attribute
in a repository section to be set to an empty string which
is not allowed by the schema. Instead an empty alias should
lead to no alias attribute set at all. This commit fixes it
2026-02-18 13:19:55 +01:00
Marcus Schäfer
031a839f95
Fixed leap/test-image-embedded integration test
No need to install dkms
2026-02-18 10:52:16 +01:00
Marcus Schäfer
7b7a630c1a
Fix shellcheck for MicroOS build test
Make sure shellcheck is happy for test-image-MicroOS/config.sh
2026-02-18 10:42:21 +01:00
Marcus Schäfer
ee0b2113db
Add Micro Build with extra data partition 2026-02-18 10:28:52 +01:00
Marcus Schäfer
72128e61b9
Update TW integration tests
zypper no longer provides /etc/zypp/zypp.conf. Instead the
concept of /etc/zypp/zypp.conf.d/*.conf was introduced. This
broke all integration tests which modified the former zypp.conf.
I dropped all this modifications from the integration tests
as they seem to be obsolete anyway.
2026-02-16 17:46:37 +01:00
Marcus Schäfer
94079a41e2
Update documentation per review by Sean Marlow
Rephrase the note where to find help or how to get in contact
2026-02-16 13:05:43 +01:00
Marcus Schäfer
4fa7487149
Merge pull request #2951 from OSInside/fix_archlinux_integration_tests
Added cpio to archlinux integration test
2026-02-16 09:52:26 +01:00
Marcus Schäfer
856e56d3ad
Added cpio to archlinux integration test
dracut requires cpio to be installed
2026-02-16 09:44:22 +01:00
Marcus Schäfer
6eb0f9c9ea
Merge pull request #2947 from lmue-inno/feature/add-smallestdisk-kernel-param
Add rd.kiwi.oem.smallest_disk deployment option
2026-02-16 09:38:18 +01:00
Neal Gompa (ニール・ゴンパ)
e2fcf7fddd
Merge pull request #2950 from OSInside/fix_dracut_printconfig_for_readonly_systems
Fix dracut --printconfig for readonly systems
2026-02-15 13:30:51 -05:00
Marcus Schäfer
e60001c56c
Fix dracut --printconfig for readonly systems
When calling dracut --printconfig it creates a temporary directory
and some dracut template in it below /var/tmp. On readonly systems
this location is not writable. As such make sure that the location
is a writable tmpfs during call time
2026-02-15 18:15:21 +01:00
Marcus Schäfer
d260599d23
Add mktemp and findmnt to strip list
For legacy kiwi initrd builds the new dracut version
uses mktemp and findmnt. As such this tool must not be dropped
from the kiwi initrd
2026-02-15 17:31:13 +01:00
Marcus Schäfer
f8d4f08ed4
Add realpath to strip list
For legacy kiwi initrd builds the new dracut version
uses realpath. As such this tool must not be dropped
from the kiwi initrd
2026-02-15 17:09:15 +01:00
Marcus Schäfer
0bb9a7d4d9
Update leap/.repos for local test builds
Leap integration tests has been switched from Leap15 to Leap16.
Therefore the .repos setup for local building needs to be
adapted as well.
2026-02-06 10:03:39 +01:00
Marcus Schäfer
a0d607c8db
Fix doc setup
Add missing exc_image_base_name placeholder
2026-02-04 16:09:08 +01:00
lmue-inno
eb65cbfd59
Update customize_the_boot_process.rst 2026-02-04 12:27:55 +01:00
lmue-inno
f70695e99e dracut: add support for new kernel parameter smallest_disk 2026-02-04 12:13:05 +01:00
Marcus Schäfer
8e10fbe426
Bump version: 10.2.41 → 10.2.42 2026-02-04 10:27:07 +01:00
Neal Gompa (ニール・ゴンパ)
8cfa245e8b
Merge pull request #2946 from OSInside/fix_verity_on_squashfs
Fixed veritytab if root is on squashfs
2026-02-03 11:19:54 -05:00
Marcus Schäfer
934624a1b3
Fixed veritytab if root is on squashfs
squashfs does not support UUID or LABEL, as such the PARTUUID
device assignment is used for the veritytab in this case
2026-02-03 17:13:40 +01:00
Marcus Schäfer
3c6508b502
Merge pull request #2945 from OSInside/better_error_message_from_command_capabilities
Improve error message from CommandCapabilities
2026-02-03 17:09:18 +01:00
Marcus Schäfer
79ce9f4ad2
Update documentation
Clarify on confusing warning message
2026-02-03 11:54:18 +01:00
Marcus Schäfer
3da66330ce
Improve error message from CommandCapabilities
In case CommandCapabilities is called from a command
that does not exist and raise_on_error is requested
make sure to provide a better error message pointing
out that the command does not exist instead of the
misleading "Could not parse ... output" error message
2026-02-03 10:07:20 +01:00
Marcus Schäfer
a799aeaf64
Merge pull request #2943 from AdamWill/option-in-help-correct-error
Make error logged/raised from has_option_in_help more accurate
2026-02-03 10:03:28 +01:00
Neal Gompa (ニール・ゴンパ)
5ce3d282c3
Merge pull request #2944 from AdamWill/dracut-printconfig-reallyoptional
initrd format detection: make dracut --printconfig optional
2026-02-03 00:53:46 -05:00
Adam Williamson
e952763aae initrd format detection: make dracut --printconfig optional
In https://github.com/OSInside/kiwi/pull/2921 , based on the
commit message and the fact that the code uses an `if`, it's
pretty clear the use of `dracut --printconfig` is meant to be
optional. But setting the misleadingly-named `raise_on_error`
to `True` means it isn't. `raise_on_error` makes
`has_option_in_help` raise an exception if it *fails* - doesn't
find the specified flag - not if it *errors*. Since it does not
handle the exception, this code crashes if dracut does not have
the argument:
https://koji.fedoraproject.org/koji/taskinfo?taskID=141808928

DEBUG util.py:459:  [ ERROR   ]: 06:03:28 | KiwiCommandCapabilitiesError: Could not parse dracut output

I've sent https://github.com/OSInside/kiwi/pull/2943 to make the
message less of a lie, and this makes us stop crashing if the
arg isn't available.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2026-02-02 16:12:06 -08:00
Adam Williamson
80cab8b287 Make error logged/raised from has_option_in_help more accurate
If I'm following this code correctly, we're not raising here
because we "could not parse" the output. We're raising because
we parsed it and it did not have the flag we were looking for.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2026-02-02 15:50:38 -08:00
Marcus Schäfer
52906c981a
Fix leap integration test 2026-02-02 18:41:31 +01:00
Marcus Schäfer
75f908e3a2
Fix leap builds
Adaptions from Leap 15 to Leap 16 required
2026-02-02 18:33:33 +01:00
Marcus Schäfer
1178572249
Drop openSUSE-release from leap integration tests
This package no longer exists
2026-02-02 18:00:49 +01:00