Michael Hofmann a2c417
From 71696ec83fce0b20a3cf489b970a200e44227d78 Mon Sep 17 00:00:00 2001
Michael Hofmann a2c417
From: Tianhao Chai <cth451@gmail.com>
Michael Hofmann a2c417
Date: Mon, 10 Apr 2023 20:36:12 -0400
Michael Hofmann a2c417
Subject: [PATCH] fix(multipath): remove dependency on multipathd.socket
Michael Hofmann a2c417
Michael Hofmann a2c417
This reverts commit e39ff407eca1d783ab44093c44db5ee401ff5b1d, removes
Michael Hofmann a2c417
an incorrect `Also=` directive from multipathd.service.
Michael Hofmann a2c417
Michael Hofmann a2c417
`Also=multipathd.socket` is not the correct behavior for a
Michael Hofmann a2c417
socket-activated service. This directive has been removed upstream
Michael Hofmann a2c417
and dracut should do the same.
Michael Hofmann a2c417
Michael Hofmann a2c417
This fixes #2289, #2175 where in the cleanup hook running multipath
Michael Hofmann a2c417
binary triggers activation of multipathd.service after it is stopped
Michael Hofmann a2c417
as dracut prepares to switch root in initrd-cleanup.service.
Michael Hofmann a2c417
---
Michael Hofmann a2c417
 modules.d/90multipath/module-setup.sh    | 1 -
Michael Hofmann a2c417
 modules.d/90multipath/multipathd.service | 1 -
Michael Hofmann a2c417
 2 files changed, 2 deletions(-)
Michael Hofmann a2c417
Michael Hofmann a2c417
diff --git a/modules.d/90multipath/module-setup.sh b/modules.d/90multipath/module-setup.sh
Michael Hofmann a2c417
index 370cab92b..9c3e6295f 100755
Michael Hofmann a2c417
--- a/modules.d/90multipath/module-setup.sh
Michael Hofmann a2c417
+++ b/modules.d/90multipath/module-setup.sh
Michael Hofmann a2c417
@@ -137,7 +137,6 @@ install() {
Michael Hofmann a2c417
             inst_simple "${moddir}/multipathd-configure.service" "${systemdsystemunitdir}/multipathd-configure.service"
Michael Hofmann a2c417
             $SYSTEMCTL -q --root "$initdir" enable multipathd-configure.service
Michael Hofmann a2c417
         fi
Michael Hofmann a2c417
-        inst_simple "${systemdsystemunitdir}/multipathd.socket"
Michael Hofmann a2c417
         inst_simple "${moddir}/multipathd.service" "${systemdsystemunitdir}/multipathd.service"
Michael Hofmann a2c417
         $SYSTEMCTL -q --root "$initdir" enable multipathd.service
Michael Hofmann a2c417
     else
Michael Hofmann a2c417
diff --git a/modules.d/90multipath/multipathd.service b/modules.d/90multipath/multipathd.service
Michael Hofmann a2c417
index e8182533d..1680cdfb3 100644
Michael Hofmann a2c417
--- a/modules.d/90multipath/multipathd.service
Michael Hofmann a2c417
+++ b/modules.d/90multipath/multipathd.service
Michael Hofmann a2c417
@@ -25,4 +25,3 @@ TasksMax=infinity
Michael Hofmann a2c417
 
Michael Hofmann a2c417
 [Install]
Michael Hofmann a2c417
 WantedBy=sysinit.target
Michael Hofmann a2c417
-Also=multipathd.socket