-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
overlay sys-apps/systemd: Add patches for ldconfig.service
This is in hope to either fix or pinpoint the cause of flatcar/Flatcar#1493.
- Loading branch information
Showing
12 changed files
with
109 additions
and
17 deletions.
There are no files selected for viewing
4 changes: 2 additions & 2 deletions
4
...ird_party/coreos-overlay/sys-apps/systemd/files/0001-wait-online-set-any-by-default.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...overlay/sys-apps/systemd/files/0002-networkd-default-to-kernel-IPForwarding-setting.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...s-overlay/sys-apps/systemd/files/0003-needs-update-don-t-require-strictly-newer-usr.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...reos-overlay/sys-apps/systemd/files/0005-systemd-Disable-SELinux-permissions-checks.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...verlay/sys-apps/systemd/files/0006-Revert-getty-Pass-tty-to-use-by-agetty-via-stdin.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...coreos-overlay/sys-apps/systemd/files/0007-units-Keep-using-old-journal-file-format.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
.../src/third_party/coreos-overlay/sys-apps/systemd/files/0008-sysext-Mutable-overlays.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
...ay/sys-apps/systemd/files/0009-units-Order-ldconfig.service-after-systemd-confext.s.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From 525a726fb25de099186257971a7d6f51584756cf Mon Sep 17 00:00:00 2001 | ||
From: Daan De Meyer <daan.j.demeyer@gmail.com> | ||
Date: Wed, 11 Sep 2024 21:29:25 +0200 | ||
Subject: [PATCH 09/11] units: Order ldconfig.service after | ||
systemd-confext.service | ||
|
||
The configuration files required by ldconfig could be put into | ||
place by systemd-confext.service (ldconfig only looks in /etc) so | ||
let's order the service after systemd-confext.service to make sure | ||
any config files are in place before the service runs. | ||
--- | ||
units/ldconfig.service | 3 ++- | ||
1 file changed, 2 insertions(+), 1 deletion(-) | ||
|
||
diff --git a/units/ldconfig.service b/units/ldconfig.service | ||
index 53c6d4ecb1..f5fb01ee23 100644 | ||
--- a/units/ldconfig.service | ||
+++ b/units/ldconfig.service | ||
@@ -15,7 +15,8 @@ ConditionNeedsUpdate=|/etc | ||
ConditionFileNotEmpty=|!/etc/ld.so.cache | ||
|
||
DefaultDependencies=no | ||
-After=local-fs.target | ||
+# systemd-confext.service might put the ld.so.conf configuration files in place so order this after that. | ||
+After=local-fs.target systemd-confext.service | ||
Before=sysinit.target systemd-update-done.service | ||
Conflicts=shutdown.target initrd-switch-root.target | ||
Before=shutdown.target initrd-switch-root.target | ||
-- | ||
2.34.1 | ||
|
32 changes: 32 additions & 0 deletions
32
...ay/sys-apps/systemd/files/0010-units-Order-ldconfig-after-systemd-tmpfiles-setup.se.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
From 60865206af3e43a2a917f347c2c7bd4d46fd3702 Mon Sep 17 00:00:00 2001 | ||
From: Daan De Meyer <daan.j.demeyer@gmail.com> | ||
Date: Mon, 23 Sep 2024 13:20:42 +0200 | ||
Subject: [PATCH 10/11] units: Order ldconfig after | ||
systemd-tmpfiles-setup.service | ||
|
||
tmpfiles might be linking the configuration for ldconfig into /etc | ||
so make sure it runs after it so that the configuration is guaranteed | ||
to be in place. | ||
--- | ||
units/ldconfig.service | 5 +++-- | ||
1 file changed, 3 insertions(+), 2 deletions(-) | ||
|
||
diff --git a/units/ldconfig.service b/units/ldconfig.service | ||
index f5fb01ee23..404fa011d5 100644 | ||
--- a/units/ldconfig.service | ||
+++ b/units/ldconfig.service | ||
@@ -15,8 +15,9 @@ ConditionNeedsUpdate=|/etc | ||
ConditionFileNotEmpty=|!/etc/ld.so.cache | ||
|
||
DefaultDependencies=no | ||
-# systemd-confext.service might put the ld.so.conf configuration files in place so order this after that. | ||
-After=local-fs.target systemd-confext.service | ||
+# systemd-confext.service or systemd-tmpfiles-setup.service might put the ld.so.conf configuration files in place so | ||
+# order it after those. | ||
+After=local-fs.target systemd-confext.service systemd-tmpfiles-setup.service | ||
Before=sysinit.target systemd-update-done.service | ||
Conflicts=shutdown.target initrd-switch-root.target | ||
Before=shutdown.target initrd-switch-root.target | ||
-- | ||
2.34.1 | ||
|
22 changes: 22 additions & 0 deletions
22
...third_party/coreos-overlay/sys-apps/systemd/files/0011-Add-debug-output-to-ldconfig.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
From feb54a32d985834d7eb1ac3d88fc02e2c3878123 Mon Sep 17 00:00:00 2001 | ||
From: Krzesimir Nowak <knowak@microsoft.com> | ||
Date: Wed, 16 Oct 2024 12:52:01 +0200 | ||
Subject: [PATCH 11/11] Add debug output to ldconfig | ||
|
||
--- | ||
units/ldconfig.service | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/units/ldconfig.service b/units/ldconfig.service | ||
index 404fa011d5..3793e111da 100644 | ||
--- a/units/ldconfig.service | ||
+++ b/units/ldconfig.service | ||
@@ -25,4 +25,4 @@ Before=shutdown.target initrd-switch-root.target | ||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
-ExecStart=/sbin/ldconfig -X | ||
+ExecStart=/sbin/ldconfig -X -v | ||
-- | ||
2.34.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters