ryantimwilson / rpms / systemd

Forked from rpms/systemd a month ago
Clone
f8986c
From 8ed83533ae34ad1836fa82f70c08eb075aa8578f Mon Sep 17 00:00:00 2001
f8986c
From: Jan Synacek <jsynacek@redhat.com>
f8986c
Date: Wed, 30 Jan 2019 10:20:57 +0100
f8986c
Subject: [PATCH] rules: fix memory hotplug rule so systemd-detect-virt does
f8986c
 not run too often
f8986c
f8986c
Fixes a bug introduced in commit c50b7bcbebcfebfce3a7e7fb77f88f4b590fb2b5.
f8986c
f8986c
Resolves: #1701230
f8986c
---
f8986c
 rules/40-redhat.rules | 3 ++-
f8986c
 1 file changed, 2 insertions(+), 1 deletion(-)
f8986c
f8986c
diff --git a/rules/40-redhat.rules b/rules/40-redhat.rules
f8986c
index 1b10e173d..2c690e522 100644
f8986c
--- a/rules/40-redhat.rules
f8986c
+++ b/rules/40-redhat.rules
f8986c
@@ -4,7 +4,8 @@
f8986c
 SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"
f8986c
 
f8986c
 # Memory hotadd request
f8986c
-SUBSYSTEM!="memory", ACTION!="add", GOTO="memory_hotplug_end"
f8986c
+SUBSYSTEM!="memory", GOTO="memory_hotplug_end"
f8986c
+ACTION!="add", GOTO="memory_hotplug_end"
f8986c
 PROGRAM="/bin/uname -p", RESULT=="s390*", GOTO="memory_hotplug_end"
f8986c
 
f8986c
 ENV{.state}="online"