Commit Graph

6022 Commits

Author SHA1 Message Date
Marcus Schäfer
8d9986e2e5
Delete fstab.script from SL-Micro test build
This was only needed when /var was an extra partition, but
it's a volume with copy-on-write disabled for some time
2025-05-12 09:13:41 +02:00
Marcus Schäfer
f4d227070b
Add systemd-resolved to TW integration tests
For some reason it's not longer part of the systemd standard
installation
2025-05-12 08:49:44 +02:00
Marcus Schäfer
a46f26b385
Bump version: 10.2.20 → 10.2.21 2025-05-09 11:43:48 +02:00
Neal Gompa (ニール・ゴンパ)
7d6d4a7994
Merge pull request #2800 from OSInside/support_erofs_overlaydisk
Support erofs overlaydisk
2025-05-08 16:13:19 -04:00
Marcus Schäfer
69dafcdd3c
Fixed access issue to etc/kernel for sdboot
In case of an overlayroot setup we have to make sure
that etc/kernel is writable. This is done by a bind
mount of the ESP
2025-05-08 22:07:04 +02:00
Marcus Schäfer
1a1829d9b0
Update test-image-overlayroot
Add another build using grub instead of systemd-boot and use
btrfs as write partition instead of xfs. Please note this test
requires a boot partition because grub cannot read from erofs
and unlike systemd-boot grub does not read all boot data from
the ESP.
2025-05-08 22:07:04 +02:00
Marcus Schäfer
bae760ed16
Fixed get_volume_management
If a volume capable filesystem like btrfs is requested, there
must also be a volume definition available to report that
the volume management is actively used. Just the request of
the filesystem can also mean it's being used without volumes
like it could be the case for an overlayroot setup that
requests btrfs as write partition.
2025-05-08 22:07:04 +02:00
Marcus Schäfer
12fc1dfeaf
Update test-image-overlayroot
Move to systemd-boot as bootloader, activate secure boot
and drop the extra boot partition. Use XFS for the write
space
2025-05-08 22:07:04 +02:00
Marcus Schäfer
bea1223d50
Allow initrd updates on read-only devices
Move initrd to ESP for boot loaders that reads data
from there
2025-05-08 22:07:04 +02:00
Marcus Schäfer
a0f768febc
Fix ordering issue for device assignment
wrong assignment of a boot partition in overlayroot setup
without boot partition
2025-05-08 22:07:04 +02:00
Marcus Schäfer
4238293513
Switch to dracut-kiwi-verity
So far no luck with the systemd verity generator. This
commit adds the parsing of /etc/veritytab in the existing
kiwi-verity dracut module and uses it in the overlayroot
integration test.
2025-05-08 22:07:04 +02:00
Marcus Schäfer
6b62fe5d1b
Update test-image-overlayroot integration test
Switch to erofs for overlay testing. Additionally split the build
into two profiles. The first one just builds a simple overlayroot
oem disk based on erofs. The second one adds a veritysetup layer
and configures the systemd-veritysetup-generator for use in dracut.
This Fixes #2799
2025-05-08 22:07:04 +02:00
Marcus Schäfer
3963e56c91
Add documentation for new attribute
Add details how to use the new overlayroot_readonly_filesystem attribute
2025-05-08 22:07:04 +02:00
Marcus Schäfer
1753b85e12
Add support for selecting the overlay read-only fs
Add new overlayroot_readonly_filesystem attribute which allows
to select for either squashfs or erofs as the read-only filesystem
in an OEM overlay disk setup.
2025-05-08 22:07:04 +02:00
Marcus Schäfer
d5a4715a71
Fixed root setup for verity overlay disk
When building an image with overlayroot set to true and
activated verity data, the root= parameter must be
set to root=overlay:MAPPER=verityroot instead of the standard
overlay:PARTUUID mapping.
2025-05-08 22:07:04 +02:00
Marcus Schäfer
a9ce5324f9
Make sure the verity record has a superblock 2025-05-08 22:07:04 +02:00
Marcus Schäfer
d086c50adf
Drop distro specific runtime check
The check_efi_mode_for_disk_overlay_correctly_setup exists because
shim-install does not work on read-only devices. However, shim-install
is a SUSE only tool that runs a SUSE specific secure boot setup.
For other secure boot processes this runtime check is not useful.
As runtime checks aims to be generally useful, this one gets
dropped.
2025-05-08 22:07:04 +02:00
Marcus Schäfer
9e7d54b284
Add dkms to test-image-embedded integration test 2025-05-08 21:53:34 +02:00
Marcus Schäfer
486a45fa50
Add kiwi-settings package for TW
de-blacklist erofs to allow building integration tests
with this filesystem
2025-05-07 23:34:16 +02:00
Marcus Schäfer
f67a728147
Merge pull request #2691 from glaubitz/loongarch64
Add support for loongarch64
2025-05-06 16:12:31 +02:00
Neal Gompa (ニール・ゴンパ)
93146845c4
Merge pull request #2798 from OSInside/size_for_root_clones
Fix root clone size setup
2025-05-06 06:28:34 -04:00
Marcus Schäfer
e9c1568904
Fix root clone size setup
If the root_clone attribute is specified without providing a
fixed size for the system, kiwi estimates the size needed for
the root part and assigns the rest to the clone. This leads to
different partition sizes for the root clones. As per definition
of a clone the expectation is that the size is the same, this
commit changes the behavior such that the calculated size for
the system is applied to the origin root and all its clones.
As a consequence this can leave unpartitioned space free in
the image. This Fixes #2463
2025-05-06 09:25:06 +02:00
Marcus Schäfer
dd9f991de6
Bump version: 10.2.19 → 10.2.20 2025-05-05 10:19:10 +02:00
Marcus Schäfer
43ea22c9fd
Fix reencryption master key passphrase
Make sure to use the correct passphrase for the master
key such that it can be decrypted with the same credentials
as before. The credentials reset is a subsequent task
after reencryption.
2025-05-02 21:28:53 +02:00
Marcus Schäfer
a3d10cd6b0
Bump version: 10.2.18 → 10.2.19 2025-05-01 20:40:39 +02:00
Marcus Schäfer
63b180db83
Fixed targettype setup in zipl.conf
The special targettype set to GPT still indicates SCSI for
the zipl.conf but tells kiwi to create a GPT disk layout
2025-04-30 15:39:00 +02:00
Marcus Schäfer
cb80c65ff3
Fixed s390 integration test
targettype attribute in wrong section
2025-04-30 15:02:06 +02:00
Neal Gompa (ニール・ゴンパ)
34130b8ffa
Merge pull request #2797 from OSInside/support_gpt_on_s390
Add support for GPT targettype on s390
2025-04-30 06:52:10 -04:00
Neal Gompa (ニール・ゴンパ)
7e937cbc06
Merge pull request #2793 from OSInside/fix_bls_default_setting
Fixed default bls value setup
2025-04-30 06:51:53 -04:00
Marcus Schäfer
2c9409f765
Fixed default bls value setup
Fixed get_build_type_bootloader_bls behavior in case the bls
attribute is not set. In this case get_bls() returns a None value
which was returned. However in this case the attribute value
should not be taken into account and the method defined default
value for bls should be returned. This Fixes #2542
2025-04-30 12:47:59 +02:00
Neal Gompa (ニール・ゴンパ)
f728109c8b
Merge pull request #2796 from OSInside/compress_option_for_bundler
Add --no-compress option to bundler
2025-04-30 06:34:42 -04:00
Marcus Schäfer
2111bb567d
Add support for GPT targettype on s390
Allow to build s390 images using GPT instead of the old DOS
partition table. zipl has added support to read from GPT.
This Fixes #2694
2025-04-30 12:34:27 +02:00
Marcus Schäfer
7bf437956d
Add --no-compress option to bundler
Allow to skip the compression for bundle files marked
to become compressed. This Fixes #2736
2025-04-30 12:12:51 +02:00
Marcus Schäfer
f85b1ac4af
Merge pull request #2795 from traylenator/retire_basesystem
Rawhide (F43) has removed basesystem package
2025-04-30 11:29:28 +02:00
Marcus Schäfer
8a5b3ffc03
Merge pull request #2794 from traylenator/usermod
rawhide install shadow-utils for usermod
2025-04-30 11:28:43 +02:00
Steve Traylen
1eccac08a0 Rawhide (F43) has removed basesystem package
The basesystem package was retired with rawhide (F43).

https://src.fedoraproject.org/rpms/filesystem/pull-request/20
2025-04-30 11:13:51 +02:00
Steve Traylen
dad985bf41 rawhide install shadow-utils for usermod
Using `kiwi-ng` version 10.2.18 (EL9)

Currently with:

```
sudo kiwi-ng system build \
   --description kiwi/build-tests/x86/fedora/test-image-docker
   --set-repo http://ftp.fau.de/fedora/linux/development/rawhide/Everything/x86_64/os/ \
   --target-dir /tmp/myimage1
```

This fails with:

```
[ INFO    ]: 09:46:38 | Setting up user root
[ INFO    ]: 09:46:38 | --> Modifying user: root
[ INFO    ]: 09:46:38 | --> Primary group for user root: root
[ ERROR   ]: 09:46:38 | KiwiCommandError: chroot: stderr: /sbin/chroot: failed to run command ‘usermod’: No such file or directory
```

Install the package `shadow-utils` to provide `usermod`.
2025-04-30 10:04:17 +02:00
Marcus Schäfer
4ea1c2e7ea
Bump version: 10.2.17 → 10.2.18 2025-04-28 16:48:09 +02:00
Neal Gompa (ニール・ゴンパ)
5f368bd8ea
Merge pull request #2792 from OSInside/fix_use_disk_password_for_random_keys
Fix setup of use_disk_password for random secret
2025-04-28 05:45:08 -04:00
Neal Gompa (ニール・ゴンパ)
7ff82b04ab
Merge pull request #2791 from OSInside/drop-inst-grub2-mod-uefi
Drop copying GRUB2 modules to /boot with Secure Boot UEFI images
2025-04-28 04:05:52 -04:00
Marcus Schäfer
944998b239
Fix setup of use_disk_password for random secret
When using luks="random" in combination with use_disk_password="true"
the resulting cryptomount call in grub is wrong. This commit fixes it
2025-04-28 10:04:08 +02:00
Neal Gompa
76dedc5532 Drop copying GRUB2 modules to /boot with Secure Boot UEFI images
Copying the modules creates a situation where future updates
applied to a running system can cause GRUB to crash due to mixed
modules and GRUB EFI binaries.

It is not needed anyway since GRUB EFI binaries for Secure Boot have
all modules compiled into the binaries.

Fixes: https://github.com/OSInside/kiwi/issues/2790
2025-04-27 17:14:23 -04:00
Marcus Schäfer
01a057312a
Merge pull request #2789 from OSInside/distro-support-matrix
doc: overview: Add list of supported Linux distributions
2025-04-27 21:16:49 +02:00
Marcus Schäfer
6309726927
Make sure editbootinstall runs offline
editbootinstall expects the system to be umounted
2025-04-27 20:58:19 +02:00
Marcus Schäfer
8deb229917
Make sure post sync actions are in scope 2025-04-27 20:16:20 +02:00
Marcus Schäfer
8d51426817
Follow up fix for overlayroot builds for EFI path
Only perform the boot overlay if there is an extra boot partition
2025-04-27 20:00:52 +02:00
Marcus Schäfer
3fb2756802
Only remove entries from exclude list if present 2025-04-27 19:34:13 +02:00
Marcus Schäfer
d4324cebff
Fix overlayroot builds for EFI path
make sure to keep boot/efi mountpoint directories
in the read-only area as they can't be created later
2025-04-27 19:14:19 +02:00
Neal Gompa
15469e305f doc: overview: Add list of supported Linux distributions
These are the Linux distributions that are developed and actively
tested for with the latest kiwi releases.

This should offer greater clarity about what we're able to support
as an upstream project.
2025-04-27 12:04:27 -04:00
Marcus Schäfer
82622eff68
Fixed mount of image system for volume managers
The ImageSystem.mount() method implemented its own handling
for mounting the volumes of a volume manager based system.
First and foremost this duplicates code that already exists
in the respective VolumeManager implementation and second
the code behaved wrong in case of btrfs when there is no
default subvolume configured
2025-04-27 16:46:14 +02:00