mirror of
https://github.com/flatcar/scripts.git
synced 2026-02-06 16:22:33 +01:00
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:
parent
a2c676de12
commit
cbc8efadb4
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user