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