The dropins path is `/etc/multipath/conf.d`, not
`/etc/multipath/multipath.conf.d`:
https://github.com/opensvc/multipath-tools/blob/
686797b7d0da4fc24fdfcb0fc6364df78a0b232d/Makefile.inc#L100
But anyway, we don't need to create that directory. We only need to
create `/etc/multipath`.
While we're here, add a comment to explain this.
[Service]
Type=oneshot
-ExecStartPre=-/usr/bin/mkdir -p /etc/multipath/multipath.conf.d
+# mpathconf requires /etc/multipath to already exist
+ExecStartPre=-/usr/bin/mkdir -p /etc/multipath
ExecStart=/usr/sbin/mpathconf --enable
[Install]
#!/bin/sh
if [ "$(getarg rd.multipath)" = "default" ] && [ ! -e /etc/multipath.conf ]; then
- mkdir -p /etc/multipath/multipath.conf.d
+ # mpathconf requires /etc/multipath to already exist
+ mkdir -p /etc/multipath
mpathconf --enable
fi