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 <jlecuirot@microsoft.com>
This commit is contained in:
James Le Cuirot 2026-01-26 16:22:38 +00:00
parent a2c676de12
commit cbc8efadb4
No known key found for this signature in database
GPG Key ID: 1226415D00DD3137

View File

@ -173,6 +173,16 @@ After=ensure-sysext.service
EOF
)
(
insinto "$(systemd_get_systemunitdir)/systemd-sysctl.service.d"
newins - flatcar.conf <<'EOF'
# sysctl runs early from the initrd, so wait for sysexts with additional
# configuration to be mounted before running it again.
[Unit]
After=ensure-sysext.service
EOF
)
(
# Allow @mount syscalls for systemd-udevd.service
insinto "$(systemd_get_systemunitdir)/systemd-udevd.service.d"