mirror of
https://github.com/systemd/systemd.git
synced 2024-11-08 11:27:32 +03:00
sysctl: apply /etc/sysctl.conf last
apply /etc/sysctl.conf last to actually allow the admin to override package provided defaults.
This commit is contained in:
parent
84bccb47a7
commit
cb80401132
@ -138,7 +138,6 @@ int main(int argc, char *argv[]) {
|
|||||||
else {
|
else {
|
||||||
char **files, **f;
|
char **files, **f;
|
||||||
|
|
||||||
apply_file("/etc/sysctl.conf", true);
|
|
||||||
|
|
||||||
r = conf_files_list(&files, ".conf",
|
r = conf_files_list(&files, ".conf",
|
||||||
"/run/sysctl.d",
|
"/run/sysctl.d",
|
||||||
@ -160,6 +159,8 @@ int main(int argc, char *argv[]) {
|
|||||||
r = k;
|
r = k;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
apply_file("/etc/sysctl.conf", true);
|
||||||
|
|
||||||
strv_free(files);
|
strv_free(files);
|
||||||
}
|
}
|
||||||
finish:
|
finish:
|
||||||
|
Loading…
Reference in New Issue
Block a user