Commit Graph

6148 Commits

Author SHA1 Message Date
Marcus Schäfer
672a538c52
Bump version: 10.2.28 → 10.2.29 2025-07-24 19:42:56 +02:00
Neal Gompa (ニール・ゴンパ)
5dd32d19a4
Merge pull request #2864 from OSInside/fix_return_from_dracut
Fix return from repart stage
2025-07-24 13:36:04 -04:00
Marcus Schäfer
2a06e463e1
Fix return from repart stage
If we return from the repart stage it's important to wait
for the root device to appear. This is because the device
setup from udev might still be held back due to a former
lock on the device. This means if we return fast after
locking for example when check_repart_possible() quickly
finds out that it's not possible, then udev has not yet
got the time to create the device nodes.
This Fixes #2863
2025-07-24 19:25:58 +02:00
Marcus Schäfer
764e7f9b3c
Bump version: 10.2.27 → 10.2.28 2025-07-18 13:59:31 +02:00
Marcus Schäfer
b1116bdac6
Merge pull request #2861 from OSInside/repart_fixes
dracut kiwi-repart fixes
2025-07-18 13:58:59 +02:00
Marcus Schäfer
050bca00fc
Merge pull request #2862 from OSInside/fix_code_not_posix_compliant
Fix dracut code to be POSIX compliant
2025-07-18 13:58:33 +02:00
Marcus Schäfer
e911bd6861
Fix dracut code to be POSIX compliant
The redirect type "< <(...)" is not POSIX complians and leads
to a syntax error in dracut which calls bash as "sh" leading
it to be restricted to POSIX only
2025-07-18 10:35:32 +02:00
Marcus Schäfer
1b495aaff4
Extend test-image-lvm integration test
For testing a bit more complex resize procedure, update
the lvm integration test to run more resize actions
with required device locking
2025-07-17 15:24:09 +02:00
Marcus Schäfer
db0fcd0894
Apply proper udev locking
Several commands during repart, resize and other actions
require a proper lock to be set for udev such that other
events knows about the locked state of a device and do
not mess with it until the command for which the lock
persists has completed. This commit applies proper udev
locks to all commands that requires it. In addition
incorrect code that was expected to prevent such race
conditions got dropped from the implementation.
This is related to bsc#1242987
2025-07-17 12:33:17 +02:00
Marcus Schäfer
e5fbbcc8ab
relocate GPT at the end of disk using sfdisk
Using sfdisk for relocation and verification makes this
part more consistent. We also want to move away from gdisk.
This is related to #2851
2025-07-17 11:30:43 +02:00
Marcus Schäfer
b74ebbb183
Do not strictly require config.partids in repart
The kiwi-repart implementation requires a metadata file
named config.partids which holds information about
partition ids and more stored at the time the image was
built. Depending on the complexity of the image and the
resize request some of the information can be rebuilt
in case the metadata file is missing. This commit adds
the rebuild of the minimum required information to run
a standard resize and therefore allows the kiwi-repart
dracut module to work also without config.partids to be
present in the system
2025-07-17 10:42:34 +02:00
Marcus Schäfer
261716e401
Do not drop /config.partids
The partition id metadata file is used in the kiwi-repart
module. If a user wants to use the kiwi repart module
permanently, this metadata file needs to stay in the system.
Therefore it should not be automatically deleted by the
cleanup. A disk.sh hook script can be used to force the
deletion of the file though. This is related #2851
2025-07-17 10:37:34 +02:00
Marcus Schäfer
6ecd63948d
Fix centos/test-image-live-disk-v10
There is no package named iprutils
2025-07-16 16:10:07 +02:00
Marcus Schäfer
72725c87b7
Fix centos/test-image-live-disk-v10
Update package names
2025-07-16 16:04:15 +02:00
Marcus Schäfer
8700cd68fa
Added centos/test-image-live-disk-v10 build test 2025-07-16 15:59:23 +02:00
Marcus Schäfer
96750733f3
Fix tumbleweed/test-image-gce integration test
Drop obsolete growpart
2025-07-16 11:07:05 +02:00
Robert Schneider
3b40799020
Followup fix to support older apt versions for bootstrap
There are apt versions that do not create missing state files.
Make sure the intermediate bootstrap state file is created in
any case. This Fixes #2857
2025-07-16 10:54:54 +02:00
Marcus Schäfer
2668fc25a6
Fixed integration test builds
Next round of fixes for integration tests. Missing
or wrong service activations
2025-07-16 10:36:41 +02:00
Marcus Schäfer
6b2e8fa144
Fix arm/tumbleweed/test-image-rpi
Fix snapper setup for this integration test
2025-07-16 10:22:11 +02:00
Marcus Schäfer
d8c3426060
Fixed test-image-live-disk
Added missing openssh-server package
2025-07-15 16:28:45 +02:00
Marcus Schäfer
8fca4243ba
Fixed test-image-azure
Add missing python-azure-agent-config-default package
2025-07-15 15:54:51 +02:00
Marcus Schäfer
25da1bae4e
Fixed debian integration test builds
secure shell service is named ssh and not sshd there
2025-07-15 15:50:10 +02:00
Marcus Schäfer
7e0ae4f18c
Fixed integration test builds
Second round of fixes for integration tests. Again errors
now became visible due to the refactoring of the script code
2025-07-15 15:37:10 +02:00
Marcus Schäfer
3ae74dc30e
Fixed integration test builds
Errors from scripts were no longer ignored due to the last
cleanup of the integration test script code. This commit
fixes the now exposed build errors
2025-07-15 15:03:59 +02:00
Neal Gompa (ニール・ゴンパ)
b0137bc38b
Merge pull request #2856 from OSInside/cleanup_integration_tests
Cleanup integration tests config.sh script code
2025-07-15 07:57:40 -04:00
Neal Gompa (ニール・ゴンパ)
cedd7a8358
Merge pull request #2859 from OSInside/fix_runtime_check
Fix check_target_dir_on_unsupported_filesystem
2025-07-15 07:57:16 -04:00
Marcus Schäfer
5061f907c1
Fix check_target_dir_on_unsupported_filesystem
Find the first existing path in the target path and
check the filesystem capabilities for this path.
This Fixes #2858
2025-07-15 12:12:39 +02:00
Marcus Schäfer
75f2138f19
Merge pull request #2855 from andreabolognani/riscv64
defaults: Add patterns for shim/grub2 on riscv64
2025-07-15 11:06:35 +02:00
Andrea Bolognani
612c5840f1 defaults: Add patterns for shim/grub2 on riscv64
A recent commit changed the way these are looked up and
accidentally broke image building on riscv64, with

  KiwiBootLoaderGrubSecureBootError: Signed grub2 efi loader not found

now being raised for kiwi recipes that worked just fine
before that moment.

Fixes: 197572378c
Thanks: David Abdurachmanov <davidlt@rivosinc.com>
Thanks: Marcus Schäfer <marcus.schaefer@gmail.com>
Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2025-07-15 10:13:45 +02:00
Marcus Schäfer
47d9a6d477
Cleanup integration tests config.sh script code
Add script code to shellcheck and fix all reported issues.
Get rid of suseXX and baseXX methods as much as possible.
Add set -ex for all script code. Do not allow any script
code to fail.
2025-07-14 18:24:23 +02:00
Neal Gompa (ニール・ゴンパ)
49ba8a9ccd
Merge pull request #2852 from OSInside/add_slfo_integration_test
Add SLFO integration test
2025-07-14 12:00:34 -04:00
Marcus Schäfer
eefb0daf15
Add SLFO test-image-disk-simple integration test
Add simple disk test and allow for testing the new
transparent container idea for the aws toolchain. also
add SLFO builds to the helper script
2025-07-14 14:37:38 +02:00
Neal Gompa (ニール・ゴンパ)
a53c495595
Merge pull request #2851 from OSInside/fix_disk_has_unallocated_space_check
Fixed check for unallocated space on disk
2025-07-09 09:43:09 -04:00
Marcus Schäfer
b40829db88
Fixed check for unallocated space on disk
So far the check for unallocated space was only working for GPT
and there it was also not really stable. The check was based on
verifying if the backup GPT table is really at the end of the
disk. Depending on which tool was used to dump the image on the
target this "mistake" often got corrected by the tools that
dumped the image. In this case the check no longer worked.
This commit improves the check by another test which looks
for the real free bytes on disk compared to the current
partition geometry.
2025-07-09 15:39:07 +02:00
Marcus Schäfer
356a7b7cc7
Move to neutral directory for calling osc
When calling the helper/build_status.sh script to get an
overview about the results of the integration tests, there
is a stupid new behavior from the osc tool that it assumes
a package name according to the name of the directory you
are in probably connected to the fact that the data in this
directory is a git checkout or some other strange assumption.
This commit moves to a neutral directory where none of the
osc internal assumptions applies and it just does what it
should do... showing results of the given project.
2025-07-09 12:50:06 +02:00
Marcus Schäfer
dd05ad2af5
Bump version: 10.2.26 → 10.2.27 2025-07-09 11:26:31 +02:00
Marcus Schäfer
7b39c1a6fe
Merge pull request #2850 from OSInside/device_persistency_selectable_for_install_media
Add rd.kiwi.install.devicepersistency
2025-07-09 11:25:09 +02:00
Neal Gompa (ニール・ゴンパ)
3fb15c53bf
Merge pull request #2847 from OSInside/custom_filesystem_uuid
Seed filesystem UUIDs with SOURCE_DATE_EPOCH + offset
2025-07-08 10:47:03 -04:00
Marcus Schäfer
f9fb77e93e
Add global option --setenv
Allow to set environment variables in the caller environment
via the commandline, e.g --setenv SOURCE_DATE_EPOCH=42
2025-07-08 16:37:38 +02:00
Marcus Schäfer
8038ccfbef
Seed filesystem UUIDs with SOURCE_DATE_EPOCH
For reproducible builds the calculation of the filesystem UUID
should be persistent with each rebuild of the image. To achieve
this the UUID is calculated using the SOURCE_DATE_EPOCH from
the environment plus a char-number representation of the filesystem
label name as random seed. In kiwi every filesystem is created
with a label, thus only in case there is no SOURCE_DATE_EPOCH
available we continue to create the UUID as random data.
This Fixes #2761
2025-07-08 16:37:38 +02:00
Marcus Schäfer
d3283644aa
Add label attribute for <partition> section
Allow to specify a filesystem label as part of a <partition>
definition. So far the label was set by the name of the
partition. With the new label attribute, a filesystem label
different from the partition name can be set. This commit
also updates/fixes the documentation in this regard.
2025-07-08 16:37:38 +02:00
Marcus Schäfer
25d54fdd33
Improve log message in SystemIdentifier
Add some scope information such that we know from where
this log information originates from.
2025-07-08 16:37:38 +02:00
Gavin Lambert
ca746a3cbe
Fix regression in get_partition_node_name
backwards compat for lsblk before 2.38
if START column not supported, fall back to default sort
2025-07-08 16:06:26 +02:00
Marcus Schäfer
282a4e1491
Add rd.kiwi.install.devicepersistency
Allow to specify which type of persistent device name should
be used to build up the list of installation disk devices.
For example rd.kiwi.install.devicepersistency=by-path would
use the by-path representations for the available disk
devices. The default (by-id) stays untouched. In case an
invalid or not present device representation is selected, kiwi
falls back to the non persistent unix node names.
2025-07-07 16:45:40 +02:00
Marcus Schäfer
09e49ad68d
Update test-image-disk
Add NetworkManager for better remote debugging capabilities
2025-07-04 16:15:45 +02:00
Marcus Schäfer
804beab07c
Merge pull request #2846 from bmwiedemann/rbmbrid
Make mbr-id deterministic
2025-07-02 09:47:39 +02:00
Bernhard M. Wiedemann
66a0a4c3d5 Make mbr-id deterministic
Log the value of SDE so it is available to review,
even if the build system does not tell about it.

Update the tests to cover the new code-path.

Co-Authored-By: Marcus Schäfer <marcus.schaefer@gmail.com>
2025-07-02 08:49:43 +02:00
Marcus Schäfer
9a5a788860
Merge pull request #2845 from bmwiedemann/reproducibledracut
Ensure dracut initrd is reproducible
2025-07-01 15:49:29 +02:00
Bernhard M. Wiedemann
4640c183ea Ensure dracut initrd is reproducible
This helps a bit with issue #2358

Add reproducible flag for UKI too

Update tests accordingly

Co-Authored-By: Marcus Schäfer <marcus.schaefer@gmail.com>
2025-07-01 11:31:16 +02:00
Marcus Schäfer
ae1328d3c0
Merge pull request #2844 from aale24/verity_runtime_options
Add kernel parameter support for dm-verity options
2025-06-27 14:58:15 +02:00