sysctl: do not fail systemd-sysctl.service if /proc/sys is mounted read-only
authorLennart Poettering <lennart@poettering.net>
Tue, 25 Oct 2016 07:22:22 +0000 (09:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 2 Nov 2016 17:29:59 +0000 (11:29 -0600)
commit39540de8abe24886693ca29a9caeea85c88089aa
tree80871e39f34dc827732636ea3207cc2dbc4a1af8
parenta581e45ae8f9bb5c6693c23c78bc070aa15d0c8a
sysctl: do not fail systemd-sysctl.service if /proc/sys is mounted read-only

Let's make missing write access to /proc/sys non-fatal to the sysctl service.

This is a follow-up to 411e869f497c7c7bd0688f1e3500f9043bc56e48 which altered
the condition for running the sysctl service to check for /proc/sys/net being
writable, accepting that /proc/sys might be read-only. In order to ensure the
boot-up stays clean in containers lower the log level for the EROFS errors
generated due to this.
src/sysctl/sysctl.c