Skip to content

Commit 6b96a3f

Browse files
authored
Merge pull request #2145 from flatcar/ader1990/systemd-major-version-upgrade-256
Upgrade systemd from 255 to 256
2 parents 0749d95 + 089df88 commit 6b96a3f

File tree

10 files changed

+88
-46
lines changed

10 files changed

+88
-46
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- systemd ([256.9](https://github.com/systemd/system/releases/tag/v256.9) (from 255.8))

sdk_container/src/third_party/coreos-overlay/coreos-base/update_engine/update_engine-9999.ebuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ EGIT_REPO_URI="https://github.com/flatcar/update_engine.git"
77
if [[ "${PV}" == 9999 ]]; then
88
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
99
else
10-
EGIT_COMMIT="541576a4dcd56397597abef7d9ce4c539631ed65" # flatcar-master
10+
EGIT_COMMIT="46e1984f2c91e3d14bad9323a6bf32a9c6662fbc" # flatcar-master
1111
KEYWORDS="amd64 arm64"
1212
fi
1313

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
DIST systemd-stable-255.8.tar.gz 15070471 BLAKE2B b437404af7fd73ef527f80d9d14d46a781444103d1756c27494ecf2664c9c5efe1169c85b91148a3bf190dc7c5e31cf8d42a13c84102d101ea7e4a0570e8d719 SHA512 7692be761a393924669a90f6f343998a85707a9daa3ce169ce67f62ae2a39338c2c3496066b2659c6500849104fab0529fca5704a3eb32375f2f44131216d1f1
1+
DIST systemd-256.9.tar.gz 15774953 BLAKE2B caeff33d0906583094a44ab89fe9a9c1832a665f8cc768f86c55c5100bdd5c2b1500b2cd65e9519ef21d79bff92d1da3e84240793099a0e0c508afba3669c46e SHA512 aba7a0f7149fe3d28d9f930f244d5b997c28721e93e6f0768b0f0f1c918c87a0e8b7b347cffb2faa4740ca3ee3b04984454e85757365090a2cf32aba09f70681

sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/files/0002-networkd-default-to-kernel-IPForwarding-setting.patch

Lines changed: 0 additions & 24 deletions
This file was deleted.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
From 65e3f4e837001f6f00359a779b6c5801566aa750 Mon Sep 17 00:00:00 2001
2+
From: Adrian Vladu <avladu@cloudbasesolutions.com>
3+
Date: Wed, 25 Sep 2024 15:51:02 +0000
4+
Subject: [PATCH] Revert "Revert "initrd-parse-etc: override argv[0] to avoid
5+
dracut issue""
6+
7+
This reverts commit 1c585a4ccda3258088d7bc27b27a314e7ed8be80.
8+
---
9+
units/initrd-parse-etc.service.in | 4 +++-
10+
1 file changed, 3 insertions(+), 1 deletion(-)
11+
12+
diff --git a/units/initrd-parse-etc.service.in b/units/initrd-parse-etc.service.in
13+
index 1eef2bd9be..3dadab1123 100644
14+
--- a/units/initrd-parse-etc.service.in
15+
+++ b/units/initrd-parse-etc.service.in
16+
@@ -23,7 +23,9 @@ OnFailureJobMode=replace-irreversibly
17+
[Service]
18+
Type=oneshot
19+
20+
-ExecStart={{LIBEXECDIR}}/systemd-sysroot-fstab-check
21+
+# FIXME: once dracut is patched to install the symlink, change to:
22+
+# ExecStart={{LIBEXECDIR}}/systemd-sysroot-fstab-check
23+
+ExecStart=@{{SYSTEM_GENERATOR_DIR}}/systemd-fstab-generator systemd-sysroot-fstab-check
24+
25+
# We want to enqueue initrd-cleanup.service/start after we finished the part
26+
# above. It can't be part of the initial transaction, because non-oneshot units
27+
--
28+
2.34.1
29+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
https://github.com/systemd/systemd/commit/dde6f1d7456db7aa72d24b1d6956b419b6f9945c
2+
3+
From dde6f1d7456db7aa72d24b1d6956b419b6f9945c Mon Sep 17 00:00:00 2001
4+
From: Sam James <sam@gentoo.org>
5+
Date: Sat, 24 Aug 2024 13:09:47 +0100
6+
Subject: [PATCH] meson: search for 'bpf-unknown-none' too
7+
8+
We currently search for 'bpf-gcc' and 'bpf-none-gcc'. Gentoo's
9+
sys-devel/bpf-toolchain package uses 'bpf-unknown-none-gcc', as does Fedora's
10+
cross-binutils. Search for this name too.
11+
---
12+
meson.build | 1 +
13+
1 file changed, 1 insertion(+)
14+
15+
diff --git a/meson.build b/meson.build
16+
index 5e0b666c64b17..fbc2bbdf2f22f 100644
17+
--- a/meson.build
18+
+++ b/meson.build
19+
@@ -1109,6 +1109,7 @@ else
20+
elif bpf_compiler == 'gcc'
21+
bpf_gcc = find_program('bpf-gcc',
22+
'bpf-none-gcc',
23+
+ 'bpf-unknown-none-gcc',
24+
required : true,
25+
version : '>= 13.1.0')
26+
bpf_gcc_found = bpf_gcc.found()

sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/systemd-255.8.ebuild renamed to sdk_container/src/third_party/coreos-overlay/sys-apps/systemd/systemd-256.9.ebuild

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Distributed under the terms of the GNU General Public License v2
33

44
EAPI=8
5-
PYTHON_COMPAT=( python3_{10..12} )
5+
PYTHON_COMPAT=( python3_{10..13} )
66

77
# Avoid QA warnings
88
TMPFILES_OPTIONAL=1
@@ -14,15 +14,10 @@ if [[ ${PV} == 9999 ]]; then
1414
EGIT_REPO_URI="https://github.com/systemd/systemd.git"
1515
inherit git-r3
1616
else
17-
if [[ ${PV} == *.* ]]; then
18-
MY_PN=systemd-stable
19-
else
20-
MY_PN=systemd
21-
fi
2217
MY_PV=${PV/_/-}
23-
MY_P=${MY_PN}-${MY_PV}
18+
MY_P=${PN}-${MY_PV}
2419
S=${WORKDIR}/${MY_P}
25-
SRC_URI="https://github.com/systemd/${MY_PN}/archive/v${MY_PV}/${MY_P}.tar.gz"
20+
SRC_URI="https://github.com/systemd/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${MY_P}.tar.gz"
2621

2722
if [[ ${PV} != *rc* ]] ; then
2823
# Flatcar: mark as stable
@@ -34,12 +29,12 @@ inherit bash-completion-r1 linux-info meson-multilib optfeature pam python-singl
3429
inherit secureboot systemd tmpfiles toolchain-funcs udev
3530

3631
DESCRIPTION="System and service manager for Linux"
37-
HOMEPAGE="http://systemd.io/"
32+
HOMEPAGE="https://systemd.io/"
3833

3934
LICENSE="GPL-2 LGPL-2.1 MIT public-domain"
4035
SLOT="0/2"
4136
IUSE="
42-
acl apparmor audit boot cgroup-hybrid cryptsetup curl +dns-over-tls elfutils
37+
acl apparmor audit boot bpf cgroup-hybrid cryptsetup curl +dns-over-tls elfutils
4338
fido2 +gcrypt gnutls homed http idn importd iptables +kernel-install +kmod
4439
+lz4 lzma +openssl pam pcre pkcs11 policykit pwquality qrcode
4540
+resolvconf +seccomp selinux split-usr +sysv-utils test tpm ukify vanilla xkb +zstd
@@ -65,6 +60,7 @@ COMMON_DEPEND="
6560
acl? ( sys-apps/acl:0= )
6661
apparmor? ( >=sys-libs/libapparmor-2.13:0= )
6762
audit? ( >=sys-process/audit-2:0= )
63+
bpf? ( >=dev-libs/libbpf-1.4.0:0= )
6864
cryptsetup? ( >=sys-fs/cryptsetup-2.0.1:0= )
6965
curl? ( >=net-misc/curl-7.32.0:0= )
7066
elfutils? ( >=dev-libs/elfutils-0.158:0= )
@@ -148,11 +144,11 @@ RDEPEND="${COMMON_DEPEND}
148144
)
149145
sysv-utils? (
150146
!sys-apps/openrc[sysv-utils(-)]
147+
!sys-apps/openrc-navi[sysv-utils(-)]
151148
!sys-apps/sysvinit
152149
)
153150
!sysv-utils? ( sys-apps/sysvinit )
154151
resolvconf? ( !net-dns/openresolv )
155-
!sys-apps/hwids[udev]
156152
!sys-auth/nss-myhostname
157153
!sys-fs/eudev
158154
!sys-fs/udev
@@ -171,6 +167,10 @@ BDEPEND="
171167
>=sys-apps/coreutils-8.16
172168
sys-devel/gettext
173169
virtual/pkgconfig
170+
bpf? (
171+
dev-util/bpftool
172+
sys-devel/bpf-toolchain
173+
)
174174
test? (
175175
app-text/tree
176176
dev-lang/perl
@@ -211,6 +211,7 @@ pkg_pretend() {
211211
~!SYSFS_DEPRECATED_V2"
212212

213213
use acl && CONFIG_CHECK+=" ~TMPFS_POSIX_ACL"
214+
use bpf && CONFIG_CHECK+=" ~BPF ~BPF_SYSCALL ~BPF_LSM ~DEBUG_INFO_BTF"
214215
use seccomp && CONFIG_CHECK+=" ~SECCOMP ~SECCOMP_FILTER"
215216

216217
if kernel_is -ge 5 10 20; then
@@ -256,21 +257,19 @@ src_unpack() {
256257
src_prepare() {
257258
local PATCHES=(
258259
"${FILESDIR}/systemd-test-process-util.patch"
260+
"${FILESDIR}/256-bpf-gcc.patch"
259261
# Flatcar: Adding our own patches here.
260262
"${FILESDIR}/0001-wait-online-set-any-by-default.patch"
261-
"${FILESDIR}/0002-networkd-default-to-kernel-IPForwarding-setting.patch"
262263
"${FILESDIR}/0003-needs-update-don-t-require-strictly-newer-usr.patch"
263264
"${FILESDIR}/0004-core-use-max-for-DefaultTasksMax.patch"
264265
"${FILESDIR}/0005-systemd-Disable-SELinux-permissions-checks.patch"
265266
"${FILESDIR}/0006-Revert-getty-Pass-tty-to-use-by-agetty-via-stdin.patch"
266267
"${FILESDIR}/0007-units-Keep-using-old-journal-file-format.patch"
267-
# Flatcar: This can be dropped when updating to 256.
268-
"${FILESDIR}/0008-sysext-Mutable-overlays.patch"
268+
"${FILESDIR}/0009-initrd-parse-etc.service.patch"
269269
)
270270

271271
if ! use vanilla; then
272272
PATCHES+=(
273-
"${FILESDIR}/gentoo-generator-path-r2.patch"
274273
"${FILESDIR}/gentoo-journald-audit-r1.patch"
275274
)
276275
fi
@@ -335,11 +334,8 @@ multilib_src_configure() {
335334
# Disable compatibility with sysvinit
336335
-Dsysvinit-path=
337336
-Dsysvrcnd-path=
338-
# Avoid infinite exec recursion, bug 642724
339-
-Dtelinit-path="${EPREFIX}/lib/sysvinit/telinit"
340337
# no deps
341338
-Dima=true
342-
-Ddefault-hierarchy=$(usex cgroup-hybrid hybrid unified)
343339
# Match /etc/shells, bug 919749
344340
-Ddebug-shell="${EPREFIX}/bin/sh"
345341
-Ddefault-user-shell="${EPREFIX}/bin/bash"
@@ -348,6 +344,8 @@ multilib_src_configure() {
348344
$(meson_native_use_bool apparmor)
349345
$(meson_native_use_bool audit)
350346
$(meson_native_use_bool boot bootloader)
347+
$(meson_native_use_bool bpf bpf-framework)
348+
-Dbpf-compiler=gcc
351349
$(meson_native_use_bool cryptsetup libcryptsetup)
352350
$(meson_native_use_bool curl libcurl)
353351
$(meson_native_use_bool dns-over-tls dns-over-tls)
@@ -447,6 +445,14 @@ multilib_src_configure() {
447445
-Ddefault-mdns=no
448446
)
449447

448+
case $(tc-arch) in
449+
amd64|arm|arm64|ppc|ppc64|s390|x86)
450+
# src/vmspawn/vmspawn-util.h: QEMU_MACHINE_TYPE
451+
myconf+=( $(meson_native_enabled vmspawn) ) ;;
452+
*)
453+
myconf+=( -Dvmspawn=disabled ) ;;
454+
esac
455+
450456
meson_src_configure "${myconf[@]}"
451457
}
452458

@@ -504,7 +510,11 @@ multilib_src_install_all() {
504510
# keepdir /var/log/journal
505511

506512
# if use pam; then
507-
# newpamd "${FILESDIR}"/systemd-user.pam systemd-user
513+
# if use selinux; then
514+
# newpamd "${FILESDIR}"/systemd-user-selinux.pam systemd-user
515+
# else
516+
# newpamd "${FILESDIR}"/systemd-user.pam systemd-user
517+
# fi
508518
# fi
509519

510520
if use kernel-install; then

sdk_container/src/third_party/coreos-overlay/sys-kernel/bootengine/bootengine-9999.ebuild

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ EGIT_REPO_URI="https://github.com/flatcar/bootengine.git"
77
if [[ "${PV}" == 9999 ]]; then
88
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
99
else
10-
EGIT_COMMIT="c9de038b73621165f81573c77ca0d0c2f9e886db" # flatcar-master
10+
EGIT_COMMIT="229e279c1e1e480ccbfb33f254c23068941b1518" # flatcar-master
1111
KEYWORDS="amd64 arm arm64 x86"
1212
fi
1313

0 commit comments

Comments
 (0)