richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
ff6046
From fd091394e52cd652ff5163735b2a91a8c0efe415 Mon Sep 17 00:00:00 2001
ff6046
From: Lukas Nykryn <lnykryn@redhat.com>
ff6046
Date: Tue, 13 Sep 2016 13:18:38 +0200
ff6046
Subject: [PATCH] rules: don't hoplug memory on s390x
ff6046
ff6046
Related: #1523227
ff6046
---
ff6046
 rules/40-redhat.rules | 2 +-
ff6046
 1 file changed, 1 insertion(+), 1 deletion(-)
ff6046
ff6046
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
ff6046
index 3335fe5075..4c56950dab 100644
ff6046
--- a/rules/40-redhat.rules
ff6046
+++ b/rules/40-redhat.rules
ff6046
@@ -4,7 +4,7 @@
ff6046
 SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"
ff6046
 
ff6046
 # Memory hotadd request
ff6046
-SUBSYSTEM=="memory", ACTION=="add", ATTR{state}=="offline", ATTR{state}="online"
ff6046
+SUBSYSTEM=="memory", ACTION=="add", PROGRAM="/usr/bin/systemd-detect-virt", RESULT!="zvm", 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"