valeriyvdovin / rpms / systemd

Forked from rpms/systemd 4 years ago
Clone

Blame SOURCES/0674-rules-fix-memory-hotplug-rule-so-systemd-detect-virt.patch

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