mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
sysctl: don't consider missing kernel options fatal
This commit is contained in:
parent
8e1bd70d4c
commit
24a3597372
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user