Commit Graph

5261 Commits

Author SHA1 Message Date
Marcus Schäfer
0b1e806cf2 Fixed missing selinux context setup for live ISOs
When building live ISO images the selinux context was not created
for eventually new created files during the live ISO creation
process. This Fixes OSInside/kiwi-boxed-plugin#99
2026-03-12 22:33:57 +01:00
Marcus Schäfer
28d9f45ca6 Run grub mkconfig with os-prober disabled
Set GRUB_DISABLE_OS_PROBER=true to the caller environment
such that it gets consumed via /etc/grub.d/30_os-prober
This Fixes #2883
2026-03-12 22:33:50 +01:00
Marcus Schäfer
6de387477a
Bump version: 9.25.21 → 9.25.22 2024-01-09 15:19:30 +01:00
Marcus Schäfer
9ac01da5de
Fixed regression in GRUB_SERIAL_COMMAND setup
The condition to write the serial line setup was broken.
This commit fixes it. Related to Issue #2419
2024-01-09 11:18:30 +01:00
Marcus Schäfer
79789727c8
Merge pull request #2418 from OSInside/fix_unattended_overwrite
Fix overwrite of kiwi_oemunattended
2024-01-09 09:49:35 +01:00
Neal Gompa (ニール・ゴンパ)
e8fe186eed
Merge pull request #2420 from OSInside/fix_grub_terminal_setup
Fixed grub terminal setup
2024-01-08 12:51:59 -05:00
Marcus Schäfer
c6d8235fa6
Fixed grub terminal setup
The grub terminal setup is divided into the setting for the output
and the input console. For both settings different parameters exists.
So far kiwi did not differentiate between the two parts of the
console setup and that could lead to a wrong setting if only one
value is provided in kiwi's console= attribute which lead to the
grub setting, GRUB_TERMINAL=value. If value is set to e.g gfxterm
grub takes this for both input and output and it's obviously
wrong for the input. To make this less error prune the kiwi code
changes with this commit to set GRUB_TERMINAL_INPUT and
GRUB_TERMINAL_OUTPUT rather than GRUB_TERMINAL and also runs sanity
checks on the provided values if they are applicable. The information
for setting up the console in the schema stays untouched though.
That's because it's used for all bootloaders and also because grub
supports multiple values for the console in/out setting in one
GRUB_TERMINAL variable even though kiwi does no longer use it.
To make this clear for the users also the documentation for the
console attribute setup has been updated. If we want to wish two
distinct attributes for input and output console settings a schema
change and also differentiation between bootloaders is needed and
that I only see for the kiwi-10 branch if at all. This Fixes #2419
2024-01-08 18:02:27 +01:00
Marcus Schäfer
fbca8d1182
Fix tox.ini
python 3.12 unit target did not specify a 3.12 interpreter
2024-01-04 13:16:26 +01:00
Marcus Schäfer
11eea68435
Fix overwrite of kiwi_oemunattended
In case rd.kiwi.oem.installdevice is set, there is an overwrite
of the kiwi_oemunattended setting. However the variable was set
in local scope of a function and therefore the change was not
effective in other methods which also evaluates this variable.
This commit fixes it such that the overwrite happens in the early
initialize method which provides the environment for all code
running in the dracut module. This is related to jira#PED-7180
2024-01-04 13:05:39 +01:00
Igor Raits
5146ec817c
Merge pull request #2415 from OSInside/fix-setfiles-detection
Ensure setfiles is detected inside the image-root
2023-12-29 20:49:32 +01:00
Neal Gompa
41b71c3753 Ensure setfiles is detected inside the image-root
We do not actually use setfiles from the host, we use it from the
image root we create for the image build. Thus, we should look in
the image root instead of on the host system.

This prevents us from incorrectly detecting that setfiles is not
available for setting SELinux contexts.

Fixes: https://github.com/OSInside/kiwi/issues/2414
Fixes: 2a22901ddd
2023-12-29 14:23:17 -05:00
Marcus Schäfer
151c6e5e79
Merge pull request #2409 from lujianhua/kis-4096
Allow target_blocksize to be available for kis image
2023-12-29 18:16:26 +01:00
Neal Gompa (ニール・ゴンパ)
3b745b185c
Merge pull request #2410 from OSInside/missing-raw-strings
Add missing raw string identifier infront of regexes
2023-12-29 09:27:26 -05:00
Neal Gompa (ニール・ゴンパ)
2421651c19
Merge pull request #2411 from OSInside/ci-for-py3_12
CI for Python 3.12
2023-12-29 09:27:06 -05:00
Dan Čermák
eaa029332e
Use xdist on the CI to speed up the test runs 2023-12-28 13:52:32 +01:00
Dan Čermák
33b1c69096
Add unit test job using python 3.12 2023-12-28 13:51:52 +01:00
Dan Čermák
b2609243d8
Only run the job for this python environment 2023-12-28 13:51:19 +01:00
Dan Čermák
44a7a801a8
[ci] Switch runner to ubuntu-latest 2023-12-28 13:49:31 +01:00
Dan Čermák
9a55027f16
Add missing raw string identifier infront of regexes 2023-12-28 13:40:34 +01:00
Jianhua Lu
21a13252fc Allow target_blocksize to be available for kis image 2023-12-26 19:31:11 +08:00
Marcus Schäfer
80a2f3bcf6
Bump version: 9.25.20 → 9.25.21 2023-12-17 20:35:36 +01:00
Marcus Schäfer
a0ce75dad4
Cleanup tox targets
Align tox targets with github workflows and fix targets
not associated with a specific python version to use
the python3 version installed on the host
2023-12-17 20:33:43 +01:00
Marcus Schäfer
5b39a26116
Bump version: 9.25.19 → 9.25.20 2023-12-17 19:59:46 +01:00
Neal Gompa (ニール・ゴンパ)
a54e8d8233
Merge pull request #2406 from OSInside/run_setfiles_late
Make sure selinux policy is effectively applied
2023-12-17 11:16:23 -05:00
Marcus Schäfer
9628abd7f4
Fixed unit tests for parallel invokation 2023-12-17 16:12:42 +01:00
Marcus Schäfer
2a22901ddd
Make sure selinux policy is effectively applied
setup_selinux_file_contexts is now called after the config.sh
script. This makes sure that eventual policy related changes
done in the optional config.sh are covered by a late setfiles
call. In addition setup_selinux_file_contexts is called again
at the end of any chroot based script hook. So we assume that
any optional script target can change the system in a way that
a new setfiles call might be required. It can happen that
setfiles is called more often than required but as we cannot
know what custom scripts does, it's better to call it more
often compared to not often enough. This Fixes bsc#1210604
2023-12-17 15:48:08 +01:00
Marcus Schäfer
8f5d47c1df
Decrease image size for encrypted integration test
Encrypted images do not compress well, therefore the size
should be smaller such that we don't produce monsters
2023-12-14 16:57:45 +01:00
Marcus Schäfer
0f60aa154f
Use ext4 for rawhide integration test 2023-12-14 15:51:23 +01:00
Neal Gompa (ニール・ゴンパ)
f7a22cecdc
Merge pull request #2403 from OSInside/kpartx_as_default_mapper
Set kpartx as default mapper tool for s390
2023-12-14 06:50:08 -05:00
Marcus Schäfer
383a511902
Fixed typo in error message 2023-12-14 10:59:22 +01:00
Marcus Schäfer
466f8750a0
Set kpartx as default mapper tool for s390
Some time ago we moved the default partition mapper from
kpartx to partx to reduce a package dependencies.
However, on the s390 architecture partx does not work
proplerly on e.g DASD devices. Thus the default mapper
tool for this architecture will change to kpartx
with this PR
2023-12-14 08:54:58 +01:00
Marcus Schäfer
343aa7ffe8
Merge pull request #2405 from OSInside/dracut-live-no-xorriso-dep
package: Drop unused xorriso dep on dracut-kiwi-live subpackage
2023-12-14 08:54:05 +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
Neal Gompa (ニール・ゴンパ)
b28f1bfdef
Merge pull request #2401 from OSInside/partprobe_optional_in_kiwi_lib
Don't consider missing partprobe a dracut error
2023-12-13 15:23:18 -05:00
Marcus Schäfer
b7bec19f28
Include either partx or partprobe to dracut
The code in the 99kiwi-lib dracut module can either use
partprobe or partx to do the job. We prefer partx over
partprobe and error out if none of them could be found
This Fixes #2400
2023-12-12 09:40:58 +01:00
Marcus Schäfer
ef2720b826
Update test-image-MicroOS
Incorporate latest changes from upstream MicroOS and
also add an encrypted profile build for testing
2023-12-08 09:25:22 +01:00
Marcus Schäfer
39fde530f6
Bump version: 9.25.18 → 9.25.19 2023-11-28 08:54:36 +01:00
Marcus Schäfer
d4316b3893
Merge pull request #2398 from OSInside/support_install_disk_overwrite_per_cmdline
Support install disk overwrite per cmdline
2023-11-28 08:50:14 +01:00
Marcus Schäfer
8c00fa5dfc
Merge pull request #2399 from ahresse/doc/typo
Fix typo in workflow overview doc section
2023-11-24 12:59:03 +01:00
Alexandre Esse
6ff4f3f471
Fix typo in workflow overview doc section 2023-11-23 18:54:26 +01:00
Marcus Schäfer
9d8c14bcda
Add missing documentation for oem-unattended-id 2023-11-23 12:31:17 +01:00
Marcus Schäfer
21ea2243dd
Allow install disk overwrite from cmdline
Add rd.kiwi.oem.installdevice=DEVICE. Configures the disk device
that should be used in an OEM installation. This overwrites any
other oem device setting, e.g device filter or maxdisk and just
continues the installation on the given device. However, the
device must exist and must be a block special.
This Fixes jira#PED-7180
2023-11-23 12:31:09 +01:00
Marcus Schäfer
488be00c8a
Update mailmap 2023-11-21 20:46:03 +01:00
Marcus Schäfer
1976546cc4
Merge pull request #2392 from OSInside/fix_niche_case_mbrid_setup
Fix mbrid setup for read-only systems
2023-11-11 13:02:32 +01:00
Kali
24fe960c98
Replace the regex-based loader entry fix with string parsing (#2388)
A user building RHEL images ran into issues with the initrd. 
It turns out that RHEL uses some patches that mean the
initrd/linux files in RHEL are not installed to /boot, which trips
up the original regex. The new fix doesn't rely on matching the
path in boot, instead just finding the initrd/linux files and rewriting
them in place.

This change also adds the pre-and-post fix loader entries to the debug logs.

Reference: https://bugzilla.suse.com/1208701

Fixes suse bsc#1208701
2023-11-10 07:08:26 -05:00
Marcus Schäfer
7f64e7aadb
Fix mbrid setup for read-only systems
On filesystems without a UUID (e.g squashfs) the fallback boot id
setup should apply if neither UUID nor MBR ID is present. This
is a followup fix for Issue #2391
2023-11-10 13:05:48 +01:00
Marcus Schäfer
7447203d15
Fixed test-image-disk-legacy test description
The configured embedded ESP image size is too big, max 30MB
are possible as El Torito boot load size
2023-11-09 09:18:12 +01:00
Marcus Schäfer
c685c2d129
Don't make toml a requirement 2023-11-09 09:04:44 +01:00
Neal Gompa (ニール・ゴンパ)
909667290b
Merge pull request #2390 from OSInside/systemd_iso_support
Add support for ISO boot via systemd-boot
2023-11-08 10:24:48 -05:00
Neal Gompa (ニール・ゴンパ)
7c259e6726
Merge pull request #2375 from OSInside/support_toml_markup
Support TOML markup
2023-11-08 10:19:05 -05:00