[systemd-devel] Duplicate assignment of kernel/sysrq

Lennart Poettering lennart at poettering.net
Mon Apr 8 08:02:57 PDT 2013


On Fri, 05.04.13 22:07, Reindl Harald (h.reindl at thelounge.net) wrote:

> 
> 
> Am 05.04.2013 18:51, schrieb Lennart Poettering:
> > On Tue, 02.04.13 01:53, Reindl Harald (h.reindl at thelounge.net) wrote:
> > 
> >> Am 02.04.2013 01:28, schrieb Tom Gundersen:
> >>> That said, the fact that we are currently parsing /etc/sysctl.conf is
> >>> not documented
> >>
> >> and you broke it completly in Fedora 18 
> > 
> > did we? Actually, we apply sysctl once at boot, which only will apply
> > all options that are available in the kernel at that point, and then
> > will run for network devices that show up from a udev rule. That is more
> > than was done previously
> 
> yes you did
> 
> "/etc/sysctl.conf" contains "net.ipv4.ip_forward = 1" on 3 machines
> acting as routers and on the F18 release day after the upgrade all
> stopped forwarding anything and "sysctl net.ipv4.ip_forward" gave
> 0 as output, after type "sysctl -p" ping started in the same moment
> 
> since this day i have on ANY machine a service which calls "sysctl -p"
> late at boot, also on any F17 machine i maintain to make sure my settings
> are applied and to not forget this on this machines

Hmm, so this appears as another appearance of
https://bugzilla.redhat.com/show_bug.cgi?id=924433

In F18 sysctl fields from /etc/sysctl.conf are always overriden by data
from /usr/lib/sysctl.d/ and /etc/sysctl.d/. Since initscripts sets the
ip_forward flag to 0 in /usr/lib/sysctl.d/ you couldn't change this with
/etc/sysctl.conf hence. This of course is pretty broken.

THis is fixed in F19 and git commit
fabe5c0e5fce730aa66e10a9c4f9fdd443d7aeda upstream.

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list