From: Jonathan Lebon Date: Mon, 11 Jul 2022 14:53:50 +0000 (-0400) Subject: fix(90multipath): use RemainAfterExit=yes for multipathd-configure.service X-Git-Tag: 058~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2334031a890a1101c78f986681236c76ba806d91;p=thirdparty%2Fdracut.git fix(90multipath): use RemainAfterExit=yes for multipathd-configure.service Services of type `oneshot` should almost always use `RemainAfterExit=yes`. This is a one-time action that we don't want to rerun if the unit gets pulled in multiple times in the systemd transaction. --- diff --git a/modules.d/90multipath/multipathd-configure.service b/modules.d/90multipath/multipathd-configure.service index 08969d924..a2baec759 100644 --- a/modules.d/90multipath/multipathd-configure.service +++ b/modules.d/90multipath/multipathd-configure.service @@ -12,6 +12,7 @@ ConditionPathExists=!/etc/multipath.conf [Service] Type=oneshot +RemainAfterExit=yes # mpathconf requires /etc/multipath to already exist ExecStartPre=-/usr/bin/mkdir -p /etc/multipath ExecStart=/usr/sbin/mpathconf --enable