Commit 24a35973 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

sysctl: don't consider missing kernel options fatal

parent 8e1bd70d
...@@ -54,6 +54,8 @@ static void apply_sysctl(const char *property, const char *value) { ...@@ -54,6 +54,8 @@ static void apply_sysctl(const char *property, const char *value) {
if ((r = write_one_line_file(p, value)) < 0) { if ((r = write_one_line_file(p, value)) < 0) {
log_warning("Failed to write '%s' to '%s': %s", value, p, strerror(-r)); log_warning("Failed to write '%s' to '%s': %s", value, p, strerror(-r));
if (r != -ENOENT)
exit_code = r; exit_code = r;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment