anitazha / rpms / systemd

Forked from rpms/systemd 3 years ago
Clone

Blame SOURCES/0009-rules-reload-sysctl-settings-when-the-bridge-module-.patch

ff6046
From 4a7602e27a50828ac8a0eb6b83a1c2c722af652d Mon Sep 17 00:00:00 2001
ff6046
From: Lukas Nykryn <lnykryn@redhat.com>
ff6046
Date: Wed, 13 May 2015 17:11:48 +0200
ff6046
Subject: [PATCH] rules: reload sysctl settings when the bridge module is
ff6046
 loaded
ff6046
ff6046
Related: #1523227
ff6046
---
ff6046
 rules/40-redhat.rules | 3 +++
ff6046
 1 file changed, 3 insertions(+)
ff6046
ff6046
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
ff6046
index 8231caae98..556a3a3a90 100644
ff6046
--- a/rules/40-redhat.rules
ff6046
+++ b/rules/40-redhat.rules
ff6046
@@ -5,3 +5,6 @@ SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}
ff6046
 
ff6046
 # Memory hotadd request
ff6046
 SUBSYSTEM=="memory", ACTION=="add", ATTR{state}=="offline", ATTR{state}="online"
ff6046
+
ff6046
+# reload sysctl.conf / sysctl.conf.d settings when the bridge module is loaded
ff6046
+ACTION=="add", SUBSYSTEM=="module", KERNEL=="bridge", RUN+="/usr/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/bridge"