1
0
mirror of https://github.com/systemd/systemd synced 2026-03-10 23:24:49 +01:00

Compare commits

..

11 Commits

Author SHA1 Message Date
Daan De Meyer
8734b0ff32
mkosi: update mkosi ref to 4b18ea8395e9cc2b1d247be93944f5539affe964 (#40681)
* 4b18ea8395 sandbox: Make sure eventfd is CLOEXEC
* 23ea86d0cf Revert "Bump minimum python version to 3.10"
* 81fd30ec77 Revert "sandbox: Use os.eventfd()"
* 717020c97b Revert "Use python3.12 as interpreter in CentOS Stream 9
zipapp"
* e1d0e45e3b Rework sandbox globbing and exist checks
2026-02-14 18:31:26 +01:00
Daan De Meyer
fe989a1f5a mkosi: update mkosi ref to 4b18ea8395e9cc2b1d247be93944f5539affe964
* 4b18ea8395 sandbox: Make sure eventfd is CLOEXEC
* 23ea86d0cf Revert "Bump minimum python version to 3.10"
* 81fd30ec77 Revert "sandbox: Use os.eventfd()"
* 717020c97b Revert "Use python3.12 as interpreter in CentOS Stream 9 zipapp"
* e1d0e45e3b Rework sandbox globbing and exist checks
2026-02-14 16:04:57 +01:00
Daan De Meyer
5ae7db99bf tools: Fix changelog generation (again)
Using --first-parent --no-merges seems to exclude not just the merge
commits but all the commits from the merge as well. Let's use only
--no-merges to get just the commits without merges.
2026-02-14 16:04:55 +01:00
Yu Watanabe
009a170d2f
mkosi: Update to latest and two speed improvements (#40678) 2026-02-14 23:08:00 +09:00
Baurzhan Muftakhidinov
2d4359fa89 po: Translated using Weblate (Kazakh)
Currently translated at 100.0% (264 of 264 strings)

Co-authored-by: Baurzhan Muftakhidinov <baurthefirst@gmail.com>
Translate-URL: https://translate.fedoraproject.org/projects/systemd/main/kk/
Translation: systemd/main
2026-02-14 12:04:50 +00:00
Zbigniew Jędrzejewski-Szmek
ce9d69c8a3
Two micro fixes for sd-json (#40676) 2026-02-14 11:54:17 +01:00
Daan De Meyer
7a70c32368 mkosi: Mark minimal images as Incremental=relaxed
Building these over and over again is extremely wasteful. Let's just
build them once and not touch them again unless -ff is specified or
their cache is out-of-date, which is exactly what Incremental=relaxed
does.

This means mkosi.extra/ and such changes won't be picked up for these
anymore unless -ff is used, but that slight annoyance is totally
outweighed by the time saved building the images.
2026-02-14 10:36:14 +01:00
Daan De Meyer
894477e6c1 mkosi: Use mkosi.initrd.conf
A more straightforward way to extend the default initrd rather than
using a subimage. This mainly allows us to take advantage of mkosi
automatically figuring out whether the initrd needs to be built or not,
speeding up builds when building directory images as the initrd can be
skipped in that case.
2026-02-14 10:36:14 +01:00
Daan De Meyer
e739a10625 mkosi: update mkosi ref to d6ddc66acb05d3d761d3f600c6b029319db9ae95
* d6ddc66acb Use python3.12 as interpreter in CentOS Stream 9 zipapp
* 89d876c86f tests: fix running pytest on undetected distro
* 61a47eeb1c centos: Fix EPEL repositories for RHEL 10
* e5aa19e2bc oci: allow user defined labels and annotations
* 1680fc5789 man: be more precise that the tools tree distribution is decided by the host distribution
* 7025b8e67d Support resizing output image
2026-02-14 10:36:09 +01:00
Luca Boccassi
5b822977c2 sd-json: also skip assert_cc in VS Code parser
For some reason the VS Code parser thinks sd_json_variant is still 48 bytes,
so skip the assert when running in that parser too

Follow-up for 337712e777bff389f53e26d5b378d2ceba7d98a8
2026-02-13 19:34:45 +00:00
Luca Boccassi
987f0fb062 sd-json: update comment regarding struct size
The assert at the bottom was updated when the size changed, but
the comment wasn't:

assert_cc(sizeof(sd_json_variant) == 40U);

Follow-up for 337712e777bff389f53e26d5b378d2ceba7d98a8
2026-02-13 19:33:21 +00:00
29 changed files with 321 additions and 230 deletions

View File

@ -25,7 +25,7 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: systemd/mkosi@14d2d37a1923c03062f55454b2b61d0c64db6238
- uses: systemd/mkosi@4b18ea8395e9cc2b1d247be93944f5539affe964
# Freeing up disk space with rm -rf can take multiple minutes. Since we don't need the extra free space
# immediately, we remove the files in the background. However, we first move them to a different location

View File

@ -39,7 +39,7 @@ jobs:
GITHUB_ACTIONS_CONFIG_FILE: actionlint.yml
ENABLE_GITHUB_PULL_REQUEST_SUMMARY_COMMENT: false
- uses: systemd/mkosi@14d2d37a1923c03062f55454b2b61d0c64db6238
- uses: systemd/mkosi@4b18ea8395e9cc2b1d247be93944f5539affe964
- name: Check that tabs are not used in Python code
run: sh -c '! git grep -P "\\t" -- src/core/generate-bpf-delegate-configs.py src/boot/generate-hwids-section.py src/ukify/ukify.py test/integration-tests/integration-test-wrapper.py'

View File

@ -167,7 +167,7 @@ jobs:
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
- uses: systemd/mkosi@14d2d37a1923c03062f55454b2b61d0c64db6238
- uses: systemd/mkosi@4b18ea8395e9cc2b1d247be93944f5539affe964
# Freeing up disk space with rm -rf can take multiple minutes. Since we don't need the extra free space
# immediately, we remove the files in the background. However, we first move them to a different location

View File

@ -1,9 +1,8 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
[Config]
MinimumVersion=commit:14d2d37a1923c03062f55454b2b61d0c64db6238
MinimumVersion=commit:4b18ea8395e9cc2b1d247be93944f5539affe964
Dependencies=
initrd
minimal-base
minimal-0
minimal-1
@ -58,7 +57,6 @@ ExtraTrees=
%O/minimal-base:/usr/share/TEST-13-NSPAWN-container-template
%O/initrd:/exitrd
Initrds=%O/initrd
KernelInitrdModules=default
# Disable relabeling by default as it only matters for TEST-06-SELINUX, takes a non-trivial amount of time

View File

@ -9,6 +9,7 @@ SplitArtifacts=yes
[Build]
Environment=SYSTEMD_REPART_OVERRIDE_FSTYPE=squashfs
Incremental=relaxed
[Content]
BaseTrees=%O/minimal-base

View File

@ -9,6 +9,7 @@ SplitArtifacts=yes
[Build]
Environment=SYSTEMD_REPART_OVERRIDE_FSTYPE=squashfs
Incremental=relaxed
[Content]
BaseTrees=%O/minimal-base

View File

@ -5,6 +5,7 @@ Format=directory
[Build]
Environment=SYSTEMD_REQUIRED_DEPS_ONLY=1
Incremental=relaxed
[Content]
Bootable=no

View File

@ -10,9 +10,6 @@ Packages=
iproute
nmap
VolatilePackages=
systemd-libs
RemoveFiles=
# Arch Linux doesn't split their gcc-libs package so we manually remove
# unneeded stuff here to make sure it doesn't end up in the image.

View File

@ -11,6 +11,3 @@ Packages=
iproute
iproute-tc
nmap-ncat
VolatilePackages=
systemd-libs

View File

@ -12,7 +12,3 @@ Packages=
iproute2
mount
ncat
VolatilePackages=
libsystemd0
libudev1

View File

@ -15,7 +15,3 @@ Packages=
patterns-base-minimal_base
sed
xz
VolatilePackages=
libsystemd0
libudev1

View File

@ -2,7 +2,6 @@
[Include]
Include=
mkosi-initrd
%D/mkosi/mkosi.sanitizers
%D/mkosi/mkosi.coverage

515
po/kk.po

File diff suppressed because it is too large Load Diff

View File

@ -56,7 +56,7 @@ typedef struct JsonSource {
char name[];
} JsonSource;
/* On x86-64 this whole structure should have a size of 6 * 64 bit = 48 bytes */
/* On x86-64 this whole structure should have a size of 5 * 64 bit = 40 bytes */
struct sd_json_variant {
union {
/* We either maintain a reference counter for this variant itself, or we are embedded into an
@ -132,7 +132,7 @@ struct sd_json_variant {
/* Let's make sure this structure isn't increased in size accidentally. This check is only for our most relevant arch
* (x86-64). */
#if defined(__x86_64__) && __SIZEOF_POINTER__ == 8
#if defined(__x86_64__) && __SIZEOF_POINTER__ == 8 && !defined(__EDG__)
assert_cc(sizeof(sd_json_variant) == 40U);
assert_cc(INLINE_STRING_MAX == 7U);
#endif

View File

@ -123,7 +123,7 @@ def update_distro(args, distro: str, config: dict):
print(f'{pkg_subdir}: commit {new_commit!s} is still fresh')
return
cmd = ['git', '-C', f'pkg/{pkg_subdir}', 'log', '--graph', '--first-parent',
cmd = ['git', '-C', f'pkg/{pkg_subdir}', 'log', '--graph', '--no-merges',
'--pretty=oneline', '--no-decorate', '--abbrev-commit', '--abbrev=10',
f'{old_commit}..{new_commit}']
if subdir is not None:

View File

@ -75,7 +75,7 @@ def update_mkosi(args):
print(f'mkosi: commit {new_commit!s} is still fresh')
return
cmd = ['git', '-C', args.dir.as_posix(), 'log', '--graph', '--first-parent', '--no-merges',
cmd = ['git', '-C', args.dir.as_posix(), 'log', '--graph', '--no-merges',
'--pretty=oneline', '--no-decorate', '--abbrev-commit', '--abbrev=10',
f'{old_commit}..{new_commit}']
print(f"+ {shlex.join(cmd)}")