Commit Graph

4833 Commits

Author SHA1 Message Date
Marcus Schäfer
be4bf8a84f
Fixed error handling for setfiles policy lookup
Errors from os.scandir were not catched. In addition the path
to run scandir was not properly created
2022-06-14 18:17:00 +02:00
Marcus Schäfer
df0f9f2633
Bump version: 9.24.41 → 9.24.42 2022-06-13 14:56:55 +02:00
Neal Gompa (ニール・ゴンパ)
8d2fbf3d06
Merge pull request #2152 from OSInside/fix_selinux_relabeling
Correct setfiles relabeling
2022-06-13 07:22:24 -04:00
Marcus Schäfer
30eb1c1a5b
Correct setfiles relabeling
This change was inspired by a change done on Fedora's livecd-tools
from here: livecd-tools/livecd-tools#236. The patch corrects issues
with the setfiles SELinux relabel command. The issues become apparent
when the host and guest policies differ. Thus it becomes required
to explicitly set the policy to decouple from eventual unwanted
host settings.
2022-06-13 13:18:51 +02:00
Marcus Schäfer
28f79e509f
Bump version: 9.24.40 → 9.24.41 2022-06-09 10:29:53 +02:00
Neal Gompa (ニール・ゴンパ)
8433ed22fb
Merge pull request #2153 from OSInside/fix_signing_keys_lookup_in_option_argument
Fixed handling of signing_keys in cmdline options
2022-06-09 04:17:02 -04:00
177468b9cc
Merge pull request #2154 from OSInside/fix_dracut_outfile_detection
Fix helper method to detect dracut outfile format
2022-06-09 04:15:49 -04:00
Marcus Schäfer
92273ee651
Fix helper method to detect dracut outfile format
The method _get_boot_image_output_file_format_from_dracut_code
is used in kiwi to match parts of the dracut code for the used
output file format. Beginning with dracut-056 the code part
checked has changed syntactically such that the match did
no longer work. This commit increases the scope of the match
and replace pattern and Fixes #2149
2022-06-08 23:12:43 +02:00
Marcus Schäfer
a52117eb63
Fixed handling of signing_keys in cmdline options
When passing signing_keys with the --add-repo|--set-repo
commandline options the delimiter to separate the single
key information is a colon(:). However, this is stupid when
kiwi expects the signing key to be references as an URI
format like file://... Therefore this patch changes the
delimiter from colon(:) to semicolon(;)
2022-06-08 18:29:42 +02:00
Marcus Schäfer
698398cca0
Bump version: 9.24.39 → 9.24.40 2022-06-01 11:31:29 +02:00
Carlos Bederián
dd7e75f9c6
Setup SELinux on every system prepare / build (#2148)
Setup SELinux on every system prepare / build such that all image types benefit from it not only the disk (oem) type
2022-06-01 11:31:00 +02:00
Marcus Schäfer
72a58b54d8
Install all of QEMU to Ubuntu arm integration test 2022-05-29 21:26:15 +02:00
Marcus Schäfer
cba6057384
rename user to ubuntu for Ubuntu integration test 2022-05-29 20:51:24 +02:00
Marcus Schäfer
15fb3237b3
Bump version: 9.24.38 → 9.24.39 2022-05-29 20:33:16 +02:00
Marcus Schäfer
9abfe7f507
Move to sphinx>=5.0.0 2022-05-29 20:31:42 +02:00
Marcus Schäfer
2f1bd97dfe
Bump version: 9.24.37 → 9.24.38 2022-05-29 20:17:55 +02:00
Marcus Schäfer
a869428ffb
Fixed sphinx extlinks rendering
In Sphinx v5 warning will be treated as errors. This results in the following
warning to be an error: extlinks: Sphinx-6.0 will require a caption string to
contain exactly one '%s' and all other '%' need to be escaped as '%%'.
This commit applies the required quoting
2022-05-29 20:16:20 +02:00
Marcus Schäfer
29d1cbc976
Bump version: 9.24.36 → 9.24.37 2022-05-29 20:06:52 +02:00
Marcus Schäfer
5a46db4be2
Added example aarch64 integration test for Ubuntu
Created a RaspberryPI image description for Ubuntu(jammy)
as integration test for building aarch64 images and added
it to the integration test matrix
2022-05-29 20:00:43 +02:00
Marcus Schäfer
a9c2e26276
Merge pull request #2146 from OSInside/arm64_deb_sat_solve
Added --target-arch for image info
2022-05-27 15:35:37 +02:00
Marcus Schäfer
778dc649b1
Merge pull request #2145 from OSInside/allow_group_id_setup
Add support for group id in users setting
2022-05-27 15:35:12 +02:00
Marcus Schäfer
22647a9efb
Added --target-arch for image info
Allow cross arch dependency solving
2022-05-23 16:53:04 +02:00
Marcus Schäfer
6144ade736
update docs 2022-05-20 22:09:33 +02:00
Marcus Schäfer
04d966b920
Add support for group id in users setting
Allow to specify the group id in the groups list a user
should belong to. The group id can be placed as part of
the group name separated by a colon like in the following
example:

<users>
    <user groups="kiwi,admin:42,users" password="..." name="kiwi"/>
</users>

Please note kiwi checks if the provided group already
exists and only creates a group if it is not already present in
the system. As default groups are usually provided by the OS
itself including its preferred group id, you will intentionally
not be able to overwrite group id for existing groups.
This Fixes #2064
2022-05-20 19:23:22 +02:00
Marcus Schäfer
b43fa3fd28
Bump version: 9.24.35 → 9.24.36 2022-05-19 15:21:54 +02:00
Marcus Schäfer
328b3366f6
Merge pull request #2143 from OSInside/bootstrap_prebuilt
Add support for prebuilt bootstrap package for apt
2022-05-19 15:20:53 +02:00
Marcus Schäfer
4f47b1d94b
Add support for prebuilt bootstrap package for apt
When using the apt packagemanager kiwi required the use of
debootstrap to create the initial rootfs. This works as long
as there is always a main distribution repository available
which follows the structure of the official debian mirrors.
However if such a main distribution is not present or an
alternative layout like e.g OBS repos is used, debootstrap
will refuse to work. To allow for an alternative and without
the dependency to debootstrap kiwi supports using a prebuilt
bootstrap package providing the mini rootfs to serve as
the bootstrap result. As all other package managers properly
supports installation into an empty new root, this feature
was only added when using the apt packagemanager
2022-05-18 11:19:51 +02:00
Robert Schweikert
4427812ae2
Subformats should also not be compressed when encryption is enabled (#2138)
Subformats should also not be compressed when encryption is enabled
This is a follow on change to bdba953. When the filesystem is encrypted the
resulting image should not be compressed. Also explain why we ignore the
compression seeting in the user configuration for encrypted images.
2022-05-17 08:54:46 +02:00
Marcus Schäfer
68ffba1444
Bump version: 9.24.34 → 9.24.35 2022-05-08 20:51:36 +02:00
Marcus Schäfer
041a4cc7df
Merge pull request #2131 from OSInside/support_part_clones
Add support for partition cloning
2022-05-08 20:51:13 +02:00
Marcus Schäfer
98e66de864
Merge pull request #2136 from OSInside/support_more_repo_params_on_the_cmdline
Allow more repo params to be set on the cmdline
2022-05-08 20:50:43 +02:00
Marcus Schäfer
f02612c37c
Merge pull request #2135 from OSInside/update_ubuntu_build_tests
Update ubuntu integration tests
2022-05-08 20:46:47 +02:00
Marcus Schäfer
6c2b2916ee
Allow more repo params to be set on the cmdline
The repository parameters for signing keys, the component
list the main distribution name for debian repositories and
also the repository_gpgcheck could not be set via the
commandline options --add-repo and/or --set-repo. This
commit adds support for them and also updates the manual
page accordingly
2022-05-08 09:51:20 +02:00
Marcus Schäfer
b097fc1d9b
Update ubuntu integration tests
Build them against latest release (jammy).
This Fixes #2128
2022-05-07 09:13:52 +02:00
Marcus Schäfer
bcf2a5d77a
Bump version: 9.24.33 → 9.24.34 2022-05-07 08:58:42 +02:00
Marcus Schäfer
6726f34948
Merge pull request #2133 from OSInside/fix_runtime_check
Fixed runtime check
2022-05-07 08:58:16 +02:00
Marcus Schäfer
944115132c
Merge pull request #2134 from OSInside/fix_setup_isolinux_boot_path
Follow up fix for isolinux-config
2022-05-07 08:57:46 +02:00
Marcus Schäfer
a220c5608e
Follow up fix for isolinux-config
isolinux-config is called to update the search path inside
of the isolinux binary. isolinux/syslinux is exclusive to
the ix86 architecture and to BIOS firmware. Therefore the
condition to actually call it should reflect this.
2022-05-05 17:54:32 +02:00
Marcus Schäfer
5334fdd206
Bump version: 9.24.32 → 9.24.33 2022-05-05 17:05:56 +02:00
Marcus Schäfer
61e4f05f1b
Add support for partition cloning
Support creating block level clones of certain partitions
used in the image. Clones can be created from the root, boot
and any partition listed in the <partitions> element.
2022-05-05 17:00:36 +02:00
Marcus Schäfer
74d3705a89
Merge pull request #2132 from OSInside/support_dm_integrity_with_secret_key
Add support for dm integrity with secret key
2022-05-05 16:58:33 +02:00
Marcus Schäfer
67c7d19975
Fixed runtime check
Fixed check_dracut_module_for_disk_overlay_in_package_list. The
check complains if the dracut-kiwi-overlay module is not installed
but overlay support was requested. This is correct but should only
be done if the selected initrd system is dracut.
2022-05-05 09:37:08 +02:00
Marcus Schäfer
e7e8c3bf42
Add support for dm integrity with secret key
Allow to protect the opening of the integrity data map and
journal through a keyfile. For setting the key file two new
optional type attributes were added:

* integrity_keyfile
* integrity_metadata_key_description

The key file format must be correct according to the selected
integrity algorithm. As of now the kiwi default hmac-sha256
algorithm is used with the selected keyfile

The optional integrity_metadata_key_description attribute
allows to specify a custom description of an integrity key
as it is expected to be present in the kernel keyring. The
information is placed in the integrity metadata block. If
not specified kiwi creates a key argument string instead
which is based on the given integrity_keyfile filename.
The format of this key argument is:

:BASENAME_OF_integrity_keyfile_WITHOUT_FILE_EXTENSION
2022-05-04 16:04:37 +02:00
ozboss
18dbe55725
Add option to set LUKS type to luks1 (#2126)
Add option to set LUKS type to luks1

So far the LUKS type could be set to luks and luks2. However, what luks
version the value 'luks' evaluates to depends on how the distributor has
packaged luks. Thus it's possible that 'luks' is either luks1 or luks2. To
also have the opportunity to explicitly specify luks1 this commit adds
the opportunity in the schema.
2022-05-04 15:28:57 +02:00
Marcus Schäfer
e6dc8cb81a
Update devel packages helper
Added trang as needed when working on the schema
2022-05-04 09:29:00 +02:00
0906a06f0f
Merge pull request #2130 from OSInside/support_size_estimates_for_clone_partitions
Update get_disksize_mbytes to support clones
2022-04-28 10:08:14 -04:00
cd45ca3957
Merge pull request #2129 from OSInside/fix_uuid_setup_for_xfs
Fixed UUID setup for XFS
2022-04-28 09:48:32 -04:00
Marcus Schäfer
6b79d15f77
Update get_disksize_mbytes to support clones
When using partition clones the pre-calculation of the
disk size needs to take this into account.
2022-04-28 15:40:31 +02:00
Marcus Schäfer
90e07338c8
Fixed UUID setup for XFS
Make sure the log got replayed prior generating a new UUID
2022-04-28 15:01:58 +02:00
Marcus Schäfer
0fdcff9f97
Merge pull request #2114 from OSInside/add_clone_argument_to_disk_interface
Add support for part clones to the Disk interface
2022-04-27 18:37:52 +02:00