]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(90multipath): use RemainAfterExit=yes for multipathd-configure.service
authorJonathan Lebon <jonathan@jlebon.com>
Mon, 11 Jul 2022 14:53:50 +0000 (10:53 -0400)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Fri, 12 Aug 2022 11:59:06 +0000 (11:59 +0000)
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.

modules.d/90multipath/multipathd-configure.service

index 08969d92404926711b7487c3642d9ace70369040..a2baec75961c4d144e74a40d3f0860f1f323a1c2 100644 (file)
@@ -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