public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/dracut] rawhide: feat(systemd-sysext): include systemd-{sys,conf}ext-sysroot services
@ 2026-06-03 12:42 Pavel Valena
0 siblings, 0 replies; only message in thread
From: Pavel Valena @ 2026-06-03 12:42 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/dracut
Branch : rawhide
Commit : a43b6aa7bc98c7864a7bcdc071a1efc2cf86e6f7
Author : Pavel Valena <pvalena@redhat.com>
Date : 2026-06-03T04:07:28+02:00
Stats : +78/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/dracut/c/a43b6aa7bc98c7864a7bcdc071a1efc2cf86e6f7?branch=rawhide
Log:
feat(systemd-sysext): include systemd-{sys,conf}ext-sysroot services
From-source-git-commit: 3771f52df17d0f80205a11cf0c3bd375f4923d91
---
diff --git a/0009-feat-systemd-sysext-include-systemd-sys-conf-ext-sys.patch b/0009-feat-systemd-sysext-include-systemd-sys-conf-ext-sys.patch
new file mode 100644
index 0000000..6a18245
--- /dev/null
+++ b/0009-feat-systemd-sysext-include-systemd-sys-conf-ext-sys.patch
@@ -0,0 +1,71 @@
+From 3771f52df17d0f80205a11cf0c3bd375f4923d91 Mon Sep 17 00:00:00 2001
+From: Vitaly Kuznetsov <vkuznets@redhat.com>
+Date: Fri, 10 Apr 2026 14:55:30 +0200
+Subject: [PATCH 9/9] feat(systemd-sysext): include
+ systemd-{sys,conf}ext-sysroot services
+
+systemd v261 introduces a pair of new systemd-{sys,conf}ext-sysroot services
+that are used to merge system and configuration extensions for the main system
+from the initramfs. This allows the extensions to update any part of the main
+system, including services that run during early boot.
+
+Include these services in the initramfs. systemd enables them by
+default (through 90-systemd-initrd.preset), but dracut does not yet support
+systemd presets, so these services are enabled manually. If the newly
+introduced logic is undesirable for any reason, systemd provides the
+'systemd.{sys,conf}ext=' kernel command-line options, meaning dracut does not
+need its own.
+
+(cherry picked from commit 420977f82467d048927a82bf9625132f79e028cd)
+---
+ modules.d/11systemd-sysext/module-setup.sh | 19 +++++++++++++++----
+ 1 file changed, 15 insertions(+), 4 deletions(-)
+
+diff --git a/modules.d/11systemd-sysext/module-setup.sh b/modules.d/11systemd-sysext/module-setup.sh
+index fd26fd61..f0af9774 100755
+--- a/modules.d/11systemd-sysext/module-setup.sh
++++ b/modules.d/11systemd-sysext/module-setup.sh
+@@ -44,17 +44,24 @@ install() {
+ "/usr/lib/extension-release.d/extension-release.*" \
+ "$systemdsystemunitdir"/systemd-confext${_suffix}.service \
+ "$systemdsystemunitdir/systemd-confext${_suffix}.service.d/*.conf" \
++ "$systemdsystemunitdir"/systemd-confext-sysroot.service \
++ "$systemdsystemunitdir/systemd-confext-sysroot.service.d/*.conf" \
+ "$systemdsystemunitdir"/systemd-sysext${_suffix}.service \
+ "$systemdsystemunitdir/systemd-sysext${_suffix}.service.d/*.conf" \
++ "$systemdsystemunitdir"/systemd-sysext-sysroot.service \
++ "$systemdsystemunitdir/systemd-sysext-sysroot.service.d/*.conf" \
+ "$systemdsystemunitdir"/initrd.target.wants/systemd-confext${_suffix}.service \
+ "$systemdsystemunitdir"/initrd.target.wants/systemd-sysext${_suffix}.service \
+ systemd-confext systemd-sysext
+
+- # Enable systemd type unit(s) for systemd < v258 which doesn't ship
+- # initrd.target.wants symlinks.
++ # Enable systemd-{confext, sysext} systemd type unit(s) for systemd < v258
++ # which doesn't ship initrd.target.wants symlinks and systemd-{confext,sysext}-sysroot.service
++ # which are enabled through systemd-initrd.preset.
+ for i in \
+ systemd-confext.service \
+- systemd-sysext.service; do
++ systemd-sysext.service \
++ systemd-confext-sysroot.service \
++ systemd-sysext-sysroot.service; do
+ if [[ -e "$initdir$systemdsystemunitdir"/"$i" ]]; then
+ $SYSTEMCTL -q --root "$initdir" enable "$i"
+ fi
+@@ -67,7 +74,11 @@ install() {
+ "$systemdsystemconfdir"/systemd-confext${_suffix}.service \
+ "$systemdsystemconfdir/systemd-confext${_suffix}.service.d/*.conf" \
+ "$systemdsystemconfdir"/systemd-sysext${_suffix}.service \
+- "$systemdsystemconfdir/systemd-sysext${_suffix}.service.d/*.conf"
++ "$systemdsystemconfdir/systemd-sysext${_suffix}.service.d/*.conf" \
++ "$systemdsystemconfdir"/systemd-confext-sysroot.service \
++ "$systemdsystemconfdir/systemd-confext-sysroot.service.d/*.conf" \
++ "$systemdsystemconfdir"/systemd-sysext-sysroot.service \
++ "$systemdsystemconfdir/systemd-sysext-sysroot.service.d/*.conf"
+ fi
+
+ }
+--
+2.54.0
+
diff --git a/dracut.spec b/dracut.spec
index 8a29289..481f07b 100644
--- a/dracut.spec
+++ b/dracut.spec
@@ -8,7 +8,7 @@
Name: dracut
Version: 109
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Initramfs generator using udev
@@ -46,6 +46,9 @@ Patch7: 0007-Revert-feat-fips-include-openssl-s-fips.so-and-opens.patch
# fix(systemd-cryptsetup): load libcryptsetup via dlopen
# Author: Antonio Alvarez Feijoo <antonio.feijoo@suse.com>
Patch8: 0008-fix-systemd-cryptsetup-load-libcryptsetup-via-dlopen.patch
+# feat(systemd-sysext): include systemd-{sys,conf}ext-sysroot services
+# Author: Vitaly Kuznetsov <vkuznets@redhat.com>
+Patch9: 0009-feat-systemd-sysext-include-systemd-sys-conf-ext-sys.patch
# Please use source-git to work with this spec file:
# HowTo: https://packit.dev/source-git/work-with-source-git
@@ -479,6 +482,9 @@ echo 'dracut_rescue_image="yes"' > $RPM_BUILD_ROOT%{dracutlibdir}/dracut.conf.d/
%{_prefix}/lib/kernel/install.d/51-dracut-rescue.install
%changelog
+* Mon Jun 01 2026 Pavel Valena <pvalena@redhat.com> - 109-3
+- feat(systemd-sysext): include systemd-{sys,conf}ext-sysroot services
+
* Wed May 27 2026 Pavel Valena <pvalena@redhat.com> - 109-2
- build: fix for rhbz#2481748
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-03 12:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03 12:42 [rpms/dracut] rawhide: feat(systemd-sysext): include systemd-{sys,conf}ext-sysroot services Pavel Valena
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox