Blame SOURCES/0077-multipathd.socket-add-missing-conditions-from-servic.patch

21c5ca
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
21c5ca
From: Luca BRUNO <luca.bruno@coreos.com>
21c5ca
Date: Fri, 24 Sep 2021 09:34:01 +0000
21c5ca
Subject: [PATCH] multipathd.socket: add missing conditions from service unit
21c5ca
21c5ca
Upstream Status: https://github.com/openSUSE/multipath-tools.git
21c5ca
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2008101
21c5ca
Conflicts: Match the conditions with RHEL-8 multipathd.service unit
21c5ca
21c5ca
commit 345ccf564ce7d904641bd32baf4fc53c2283d95c
21c5ca
Author: Luca BRUNO <luca.bruno@coreos.com>
21c5ca
Date:   Fri Sep 24 09:34:01 2021 +0000
21c5ca
21c5ca
    multipathd.socket: add missing conditions from service unit
21c5ca
21c5ca
    This aligns 'multipathd' socket and service units, by adding the
21c5ca
    start conditions that are set on the service but not on the socket.
21c5ca
    It should help avoiding situations where the socket unit ends up
21c5ca
    marked as failed after hitting its retry-limit.
21c5ca
21c5ca
    Fixes: https://github.com/opensvc/multipath-tools/issues/15
21c5ca
    Signed-off-by: Luca BRUNO <luca.bruno@coreos.com>
21c5ca
    Reviewed-by: Martin Wilck <mwilck@suse.com>
21c5ca
21c5ca
Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
21c5ca
---
21c5ca
 multipathd/multipathd.socket | 3 +++
21c5ca
 1 file changed, 3 insertions(+)
21c5ca
21c5ca
diff --git a/multipathd/multipathd.socket b/multipathd/multipathd.socket
21c5ca
index 0ed4a1f7..c62c0fc8 100644
21c5ca
--- a/multipathd/multipathd.socket
21c5ca
+++ b/multipathd/multipathd.socket
21c5ca
@@ -1,6 +1,9 @@
21c5ca
 [Unit]
21c5ca
 Description=multipathd control socket
21c5ca
 DefaultDependencies=no
21c5ca
+ConditionPathExists=/etc/multipath.conf
21c5ca
+ConditionKernelCommandLine=!nompath
21c5ca
+ConditionKernelCommandLine=!multipath=off
21c5ca
 Before=sockets.target
21c5ca
 
21c5ca
 [Socket]