Blame SOURCES/0410-40-redhat.rules-disable-auto-online-of-hot-plugged-m.patch

17b0f1
From 2cd738ce220e0dd11d3b19cf593e159a7e31ddc4 Mon Sep 17 00:00:00 2001
17b0f1
From: Michal Sekletar <msekleta@redhat.com>
17b0f1
Date: Fri, 16 Sep 2016 14:45:01 +0200
17b0f1
Subject: [PATCH] 40-redhat.rules: disable auto-online of hot-plugged memory on
17b0f1
 IBM z Systems
17b0f1
17b0f1
Related: #1375603
17b0f1
---
17b0f1
 rules/40-redhat.rules | 2 +-
17b0f1
 1 file changed, 1 insertion(+), 1 deletion(-)
17b0f1
17b0f1
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
17b0f1
index 4c56950dab..0164dc9214 100644
17b0f1
--- a/rules/40-redhat.rules
17b0f1
+++ b/rules/40-redhat.rules
17b0f1
@@ -4,7 +4,7 @@
17b0f1
 SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"
17b0f1
 
17b0f1
 # Memory hotadd request
17b0f1
-SUBSYSTEM=="memory", ACTION=="add", PROGRAM="/usr/bin/systemd-detect-virt", RESULT!="zvm", ATTR{state}=="offline", ATTR{state}="online"
17b0f1
+SUBSYSTEM=="memory", ACTION=="add", PROGRAM="/bin/uname -p", RESULT!="s390*", ATTR{state}=="offline", ATTR{state}="online"
17b0f1
 
17b0f1
 # reload sysctl.conf / sysctl.conf.d settings when the bridge module is loaded
17b0f1
 ACTION=="add", SUBSYSTEM=="module", KERNEL=="bridge", RUN+="/usr/lib/systemd/systemd-sysctl --prefix=/proc/sys/net/bridge"