[systemd-devel] [PATCH] rules: only run systemd-sysctl when a network device is added

Michał Bartoszkiewicz mbartoszkiewicz at gmail.com
Sun Jun 16 15:09:53 PDT 2013


On Sun, Jun 16, 2013 at 11:58 PM, Ross Lagerwall
<rosslagerwall at gmail.com> wrote:
> OK, thanks.  But my testing shows otherwise: I created a .conf file with:
> net.ipv4.conf.enp1s0.forwarding=1
> (where eth0 is the old name, enp1s0 is the new, predictable name)
> It *correctly* sets /proc/sys/net/ipv4/conf/enp1s0/forwarding=1 after
> a reboot with the patch applied.

This works because systemd-sysctl runs from 99-systemd.rules, so the
name has already been changed by earlier rules.

--
Michał Bartoszkiewicz <mbartoszkiewicz at gmail.com>


More information about the systemd-devel mailing list