From 24a3597372849741193570d70bf0deff3ab1ef99 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 18 Nov 2010 23:03:42 +0100 Subject: sysctl: don't consider missing kernel options fatal --- src/sysctl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/sysctl.c b/src/sysctl.c index c57210e28d..6b0e9aa3ba 100644 --- a/src/sysctl.c +++ b/src/sysctl.c @@ -54,7 +54,9 @@ static void apply_sysctl(const char *property, const char *value) { if ((r = write_one_line_file(p, value)) < 0) { log_warning("Failed to write '%s' to '%s': %s", value, p, strerror(-r)); - exit_code = r; + + if (r != -ENOENT) + exit_code = r; } free(p); -- cgit v1.2.3-54-g00ecf