From: Lennart Poettering Date: Tue, 27 Dec 2011 21:52:15 +0000 (+0100) Subject: udev: exclude loopback device from udev rule based sysctl application, since we can... X-Git-Tag: v38~144^2~14 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=330672957438243c8003d3a90f0e59dedbd845e9;p=systemd udev: exclude loopback device from udev rule based sysctl application, since we can just apply that directly at boot --- diff --git a/src/99-systemd.rules.in b/src/99-systemd.rules.in index b2481aea..d306f71b 100644 --- a/src/99-systemd.rules.in +++ b/src/99-systemd.rules.in @@ -44,7 +44,7 @@ SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", ENV{ID_USB_INTERFACES}=="*:0701??: # Apply sysctl variables to network devices (and only to those) as they appear. -SUBSYSTEM=="net", RUN+="@rootlibexecdir@/systemd-sysctl --prefix=/proc/sys/net/ipv4/conf/$name --prefix=/proc/sys/net/ipv4/neigh/$name --prefix=/proc/sys/net/ipv6/conf/$name --prefix=/proc/sys/net/ipv6/neigh/$name" +SUBSYSTEM=="net", KERNEL!="lo", RUN+="@rootlibexecdir@/systemd-sysctl --prefix=/proc/sys/net/ipv4/conf/$name --prefix=/proc/sys/net/ipv4/neigh/$name --prefix=/proc/sys/net/ipv6/conf/$name --prefix=/proc/sys/net/ipv6/neigh/$name" # Asynchronously mount file systems implemented by these modules as # soon as they are loaded.