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