SHA256
1
0
forked from pool/python-kiwi

Accepting request 1153889 from Virtualization:Appliances:Builder

- Fix activation of luks pool in the initrd
  kiwi called systemd-cryptsetup directly which does not take
  the settings available in /etc/crypttab into account. This
  commit changes the activation procedure in a way that the
  generator created unit file systemd-cryptsetup@... is used
  This Fixes bsc#1219009

- Set default output console to gfxterm for grub
  If no console setting is done in the image description for grub
  the default output console is set to: gfxterm and the default
  input console is set to: console. This Fixes bsc#1219074

- Allow terminal emulation setup from the cmdline
  Using rd.kiwi.term will export the TERM variable into the initrd
  environment. In case the default value for the terminal emulation
  is not appropriate rd.kiwi.term can be used to overwrite the default.
  The environment is also passed to the systemd unit which calls
  dialog based programs in kiwi dracut code, such that the TERM
  setting will be effective there too. For example:

OBS-URL: https://build.opensuse.org/request/show/1153889
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-kiwi?expand=0&rev=111
This commit is contained in:
Dominique Leuenberger 2024-03-01 22:35:51 +00:00 committed by Git OBS Bridge
commit aaea0e3a17
4 changed files with 324 additions and 6 deletions

View File

@ -3,7 +3,7 @@
pkgname=('python-kiwi' 'kiwi-man-pages' 'dracut-kiwi-lib' 'dracut-kiwi-oem-repart' 'dracut-kiwi-oem-dump' 'dracut-kiwi-live' 'dracut-kiwi-overlay') pkgname=('python-kiwi' 'kiwi-man-pages' 'dracut-kiwi-lib' 'dracut-kiwi-oem-repart' 'dracut-kiwi-oem-dump' 'dracut-kiwi-live' 'dracut-kiwi-overlay')
arch=(x86_64) arch=(x86_64)
pkgver=9.25.19 pkgver=9.25.22
pkgrel=0 pkgrel=0
pkgdesc="KIWI - Appliance Builder Next Generation" pkgdesc="KIWI - Appliance Builder Next Generation"
url="https://github.com/SUSE/kiwi/tarball/master" url="https://github.com/SUSE/kiwi/tarball/master"
@ -12,7 +12,7 @@ makedepends=(python-setuptools gcc shadow grep)
provides=(kiwi-ng kiwi) provides=(kiwi-ng kiwi)
source=("${pkgname}.tar.gz") source=("${pkgname}.tar.gz")
changelog="${pkgname}.changes" changelog="${pkgname}.changes"
md5sums=('2c2579761c6953e6955eb37873fe9cda') md5sums=('6d27e95ce4889db4a6cd1bef7ef1284f')
build() { build() {

View File

@ -1,3 +1,312 @@
-------------------------------------------------------------------
Thu Feb 29 15:36:41 CET 2024 - Marcus Schäfer <marcus.schaefer@gmail.com>
- Fix activation of luks pool in the initrd
kiwi called systemd-cryptsetup directly which does not take
the settings available in /etc/crypttab into account. This
commit changes the activation procedure in a way that the
generator created unit file systemd-cryptsetup@... is used
This Fixes bsc#1219009
-------------------------------------------------------------------
Thu Feb 29 09:49:39 CET 2024 - Marcus Schäfer <marcus.schaefer@gmail.com>
- Add changelog fix file for commit 31deb0
The commit used a wrong e-mail address which should not
land in the created changes file for the packaging
-------------------------------------------------------------------
Thu Feb 29 09:39:06 CET 2024 - Marcus Schäfer <marcus.schaefer@gmail.com>
- Apply changelog fixes by glob
Does not require Makefile changes when maintaining branches
-------------------------------------------------------------------
Wed Feb 28 17:12:33 CET 2024 - Marcus Schäfer <marcus.schaefer@gmail.com>
- Add changelog fix file for commit deb6ca
The commit used a wrong e-mail address which should not
land in the created changes file for the packaging
-------------------------------------------------------------------
Wed Feb 28 10:42:17 CET 2024 - Marcus Schäfer <marcus.schaefer@gmail.com>
- Set default output console to gfxterm for grub
If no console setting is done in the image description for grub
the default output console is set to: gfxterm and the default
input console is set to: console. This Fixes bsc#1219074
-------------------------------------------------------------------
Wed Feb 21 10:21:48 CET 2024 - Marcus Schäfer <marcus.schaefer@gmail.com>
- Allow terminal emulation setup from the cmdline
Using rd.kiwi.term will export the TERM variable into the initrd
environment. In case the default value for the terminal emulation
is not appropriate rd.kiwi.term can be used to overwrite the default.
The environment is also passed to the systemd unit which calls
dialog based programs in kiwi dracut code, such that the TERM
setting will be effective there too. For example:
rd.kiwi.term=vt100
This is related to bsc#1218095
-------------------------------------------------------------------
Mon Feb 19 12:05:45 CET 2024 - Marcus Schäfer <marcus.schaefer@gmail.com>
- Followup fix for .profile.extra
Allow to source .profile.extra such that it is possible to
read and act on e.g cmdline parameters. This is related to
bsc#1218095
-------------------------------------------------------------------
Fri Feb 16 15:08:49 CET 2024 - David Cassany <dcassany@suse.com>
- Include partprobe in initrd for s390
This commit includes partprobe, in addition to parted, on
s390 based systems. Otherwise partx is used and apparently
it does not properly support s390.
Fixes bsc#1219798
Signed-off-by: David Cassany <dcassany@suse.com>
-------------------------------------------------------------------
Wed Feb 14 12:43:54 CET 2024 - Marcus Schäfer <marcus.schaefer@gmail.com>
- Add support for reading .profile.extra in initrd
If there is the file /.profile.extra available in the
initrd, kiwi will import this additional environment file
after the import of the standard /.profile file.
This is related to bsc#1218095
-------------------------------------------------------------------
Tue Jan 16 15:50:45 CET 2024 - Marcus Schäfer <marcus.schaefer@gmail.com>
- Follow up fix for drop of hybrid boot snippets
The following is left over code from the drop of the hybrid
boot templates.
-------------------------------------------------------------------
Tue Jan 16 10:37:16 CET 2024 - Neal Gompa <neal@gompa.dev>
- Drop hybrid boot snippets from the GRUB 2 configuration template
Sometime between GRUB 2.04 and GRUB 2.06, it became no longer
necessary to use "linuxefi"+"initrdefi" for UEFI boot. The
standard "linux"+"initrd" stanzas work for both legacy BIOS boot
and modern UEFI boot.
Some distributions no longer support "linuxefi"+"initrdefi" at all
anymore, so let's just use "linux"+"initrd" for everything now.
-------------------------------------------------------------------
Tue Jan 09 15:31:06 CET 2024 - Marcus Schäfer <marcus.schaefer@gmail.com>
- Disable workflow runs from master
The following github actions will be disabled from master
because they are expected to run from main:
- ci-publish-pages.yml
- ci-publish-to-pypi.yml
- ci-update-build-tests.yml
-------------------------------------------------------------------
Tue Jan 09 15:19:30 CET 2024 - Marcus Schäfer <marcus.schaefer@gmail.com>
- Bump version: 9.25.21 → 9.25.22
-------------------------------------------------------------------
Tue Jan 09 11:18:30 CET 2024 - Marcus Schäfer <marcus.schaefer@gmail.com>
- 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
-------------------------------------------------------------------
Mon Jan 08 17:26:00 CET 2024 - Marcus Schäfer <marcus.schaefer@gmail.com>
- 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
-------------------------------------------------------------------
Thu Jan 04 13:16:26 CET 2024 - Marcus Schäfer <marcus.schaefer@gmail.com>
- Fix tox.ini
python 3.12 unit target did not specify a 3.12 interpreter
-------------------------------------------------------------------
Thu Jan 04 13:05:39 CET 2024 - Marcus Schäfer <marcus.schaefer@gmail.com>
- 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
-------------------------------------------------------------------
Fri Dec 29 20:23:17 CET 2023 - Neal Gompa <neal@gompa.dev>
- 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: 2a22901ddd11ae23b6724b5e1aaa4261f219ccb6
-------------------------------------------------------------------
Thu Dec 28 13:52:32 CET 2023 - Dan Čermák <dcermak@suse.com>
- Use xdist on the CI to speed up the test runs
-------------------------------------------------------------------
Thu Dec 28 13:51:52 CET 2023 - Dan Čermák <dcermak@suse.com>
- Add unit test job using python 3.12
-------------------------------------------------------------------
Thu Dec 28 13:51:19 CET 2023 - Dan Čermák <dcermak@suse.com>
- Only run the job for this python environment
-------------------------------------------------------------------
Thu Dec 28 13:49:31 CET 2023 - Dan Čermák <dcermak@suse.com>
- [ci] Switch runner to ubuntu-latest
-------------------------------------------------------------------
Thu Dec 28 13:40:34 CET 2023 - Dan Čermák <dcermak@suse.com>
- Add missing raw string identifier infront of regexes
-------------------------------------------------------------------
Tue Dec 26 12:31:11 CET 2023 - Jianhua Lu <lujianhua000@gmail.com>
- Allow target_blocksize to be available for kis image
-------------------------------------------------------------------
Sun Dec 17 20:35:36 CET 2023 - Marcus Schäfer <marcus.schaefer@gmail.com>
- Bump version: 9.25.20 → 9.25.21
-------------------------------------------------------------------
Sun Dec 17 20:33:43 CET 2023 - Marcus Schäfer <marcus.schaefer@gmail.com>
- 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
-------------------------------------------------------------------
Sun Dec 17 19:59:46 CET 2023 - Marcus Schäfer <marcus.schaefer@gmail.com>
- Bump version: 9.25.19 → 9.25.20
-------------------------------------------------------------------
Sun Dec 17 16:12:42 CET 2023 - Marcus Schäfer <marcus.schaefer@gmail.com>
- Fixed unit tests for parallel invokation
-------------------------------------------------------------------
Fri Dec 15 10:43:17 CET 2023 - Marcus Schäfer <marcus.schaefer@gmail.com>
- 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
-------------------------------------------------------------------
Thu Dec 14 16:57:45 CET 2023 - Marcus Schäfer <marcus.schaefer@gmail.com>
- 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
-------------------------------------------------------------------
Thu Dec 14 15:51:23 CET 2023 - Marcus Schäfer <marcus.schaefer@gmail.com>
- Use ext4 for rawhide integration test
-------------------------------------------------------------------
Thu Dec 14 10:59:22 CET 2023 - Marcus Schäfer <marcus.schaefer@gmail.com>
- Fixed typo in error message
-------------------------------------------------------------------
Wed Dec 13 21:31:56 CET 2023 - Neal Gompa <neal@gompa.dev>
- 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
-------------------------------------------------------------------
Mon Dec 11 09:43:50 CET 2023 - Marcus Schäfer <marcus.schaefer@gmail.com>
- 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
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Dec 08 09:25:22 CET 2023 - Marcus Schäfer <marcus.schaefer@gmail.com> Fri Dec 08 09:25:22 CET 2023 - Marcus Schäfer <marcus.schaefer@gmail.com>
@ -6,6 +315,16 @@ Fri Dec 08 09:25:22 CET 2023 - Marcus Schäfer <marcus.schaefer@gmail.com>
Incorporate latest changes from upstream MicroOS and Incorporate latest changes from upstream MicroOS and
also add an encrypted profile build for testing also add an encrypted profile build for testing
-------------------------------------------------------------------
Wed Dec 06 22:10:45 CET 2023 - Marcus Schäfer <marcus.schaefer@gmail.com>
- 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
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 28 08:54:36 CET 2023 - Marcus Schäfer <marcus.schaefer@gmail.com> Tue Nov 28 08:54:36 CET 2023 - Marcus Schäfer <marcus.schaefer@gmail.com>

View File

@ -43,7 +43,7 @@
%endif %endif
Name: python-kiwi Name: python-kiwi
Version: 9.25.19 Version: 9.25.22
Provides: kiwi-schema = 7.5 Provides: kiwi-schema = 7.5
Release: 0 Release: 0
Url: https://github.com/OSInside/kiwi Url: https://github.com/OSInside/kiwi
@ -561,7 +561,6 @@ Requires: dracut-network
Requires: device-mapper Requires: device-mapper
%endif %endif
Requires: dracut Requires: dracut
Requires: xorriso
License: GPL-3.0-or-later License: GPL-3.0-or-later
Group: %{sysgroup} Group: %{sysgroup}

BIN
python-kiwi.tar.gz (Stored with Git LFS)

Binary file not shown.