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

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