From b8c7a9b8333ebc780e868de2ba4a35fd199122a4 Mon Sep 17 00:00:00 2001 From: huyubiao Date: Tue, 9 Jan 2024 20:07:02 +0800 Subject: [PATCH] Backport patches to fix compatibility with systemd 255 --- ...eat-systemd-install-systemd-executor.patch | 29 +++++++++++++++++++ dracut.spec | 5 ++++ 2 files changed, 34 insertions(+) create mode 100644 backport-feat-systemd-install-systemd-executor.patch diff --git a/backport-feat-systemd-install-systemd-executor.patch b/backport-feat-systemd-install-systemd-executor.patch new file mode 100644 index 0000000..31dc7d1 --- /dev/null +++ b/backport-feat-systemd-install-systemd-executor.patch @@ -0,0 +1,29 @@ +From bee1c4824a8cd47ce6c01892a548bdc07b1fa678 Mon Sep 17 00:00:00 2001 +From: Frantisek Sumsal +Date: Sat, 14 Oct 2023 23:45:57 +0200 +Subject: [PATCH] feat(systemd): install systemd-executor + +In [0] systemd gained a new binary - systemd-executor - that's used to +spawn processes forked off systemd. Let's copy it into the initrd if +it's available. + +[0] https://github.com/systemd/systemd/pull/27890 +--- + modules.d/00systemd/module-setup.sh | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/modules.d/00systemd/module-setup.sh b/modules.d/00systemd/module-setup.sh +index 554c25a0..9a13a1db 100755 +--- a/modules.d/00systemd/module-setup.sh ++++ b/modules.d/00systemd/module-setup.sh +@@ -34,6 +34,7 @@ install() { + "$systemdutildir"/systemd \ + "$systemdutildir"/systemd-coredump \ + "$systemdutildir"/systemd-cgroups-agent \ ++ "$systemdutildir"/systemd-executor \ + "$systemdutildir"/systemd-shutdown \ + "$systemdutildir"/systemd-reply-password \ + "$systemdutildir"/systemd-fsck \ +-- +2.41.0 + diff --git a/dracut.spec b/dracut.spec index 97f22ee..41e02e1 100644 --- a/dracut.spec +++ b/dracut.spec @@ -35,6 +35,8 @@ Patch8: backport-fix-multipath-remove-dependency-on-multipathd-socket.patch Patch9: backport-fix-dracut-install-protect-against-broken-links-poin.patch Patch10: backport-fix-dracut.sh-exit-if-resolving-executable-dependenc.patch Patch11: backport-fix-fs-lib-remove-quoting-form-the-first-argument-of.patch +# Unbreak systemd 255 +Patch12: backport-feat-systemd-install-systemd-executor.patch Source1: https://www.gnu.org/licenses/lgpl-2.1.txt Source2: openEuler.conf.example @@ -523,6 +525,9 @@ rm -f 51-dracut-rescue-postinst.sh %endif %changelog +* Mon Jan 22 2024 huyubiao - 059-5 +- Backport patches to fix compatibility with systemd 255 + * Mon Sep 25 2023 liweigang - 059-4 - backport update stream -- Gitee