Skip to content

Commit 97f90fb

Browse files
committed
sys-apps/systemd: Rerun sysctl after the sysexts have been mounted
It is run early from the initrd, so wait for the sysexts, which may have additional configuration, before running it again. Signed-off-by: James Le Cuirot <[email protected]>
1 parent f9cc497 commit 97f90fb

File tree

1 file changed

+10
-0
lines changed
  • sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-apps

1 file changed

+10
-0
lines changed

sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-apps/systemd

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,16 @@ After=ensure-sysext.service
173173
EOF
174174
)
175175

176+
(
177+
insinto "$(systemd_get_systemunitdir)/systemd-sysctl.service.d"
178+
newins - flatcar.conf <<'EOF'
179+
# sysctl runs early from the initrd, so wait for sysexts with additional
180+
# configuration to be mounted before running it again.
181+
[Unit]
182+
After=ensure-sysext.service
183+
EOF
184+
)
185+
176186
(
177187
# Allow @mount syscalls for systemd-udevd.service
178188
insinto "$(systemd_get_systemunitdir)/systemd-udevd.service.d"

0 commit comments

Comments
 (0)