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

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