]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(multipath): remove dependency on multipathd.socket
authorTianhao Chai <cth451@gmail.com>
Tue, 11 Apr 2023 00:36:12 +0000 (20:36 -0400)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Tue, 11 Apr 2023 06:02:40 +0000 (08:02 +0200)
This reverts commit e39ff407eca1d783ab44093c44db5ee401ff5b1d, removes
an incorrect `Also=` directive from multipathd.service.

`Also=multipathd.socket` is not the correct behavior for a
socket-activated service. This directive has been removed upstream
and dracut should do the same.

This fixes #2289, #2175 where in the cleanup hook running multipath
binary triggers activation of multipathd.service after it is stopped
as dracut prepares to switch root in initrd-cleanup.service.

modules.d/90multipath/module-setup.sh
modules.d/90multipath/multipathd.service

index 370cab92b2599985f4aabfc187af568425967aac..9c3e6295f6a00b9966b7787f2468266d8902c96b 100755 (executable)
@@ -137,7 +137,6 @@ install() {
             inst_simple "${moddir}/multipathd-configure.service" "${systemdsystemunitdir}/multipathd-configure.service"
             $SYSTEMCTL -q --root "$initdir" enable multipathd-configure.service
         fi
-        inst_simple "${systemdsystemunitdir}/multipathd.socket"
         inst_simple "${moddir}/multipathd.service" "${systemdsystemunitdir}/multipathd.service"
         $SYSTEMCTL -q --root "$initdir" enable multipathd.service
     else
index e8182533d6aad3b7250d6ca5d257afbf7e63e054..1680cdfb34a56bc288299b9bff7981642ed88e95 100644 (file)
@@ -25,4 +25,3 @@ TasksMax=infinity
 
 [Install]
 WantedBy=sysinit.target
-Also=multipathd.socket