Skip to content

Commit 0940be9

Browse files
jlebonjohannbg
authored andcommitted
fix(90multipath): create /etc/multipath only
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.
1 parent da55e26 commit 0940be9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ ConditionPathExists=!/etc/multipath.conf
1212

1313
[Service]
1414
Type=oneshot
15-
ExecStartPre=-/usr/bin/mkdir -p /etc/multipath/multipath.conf.d
15+
# mpathconf requires /etc/multipath to already exist
16+
ExecStartPre=-/usr/bin/mkdir -p /etc/multipath
1617
ExecStart=/usr/sbin/mpathconf --enable
1718

1819
[Install]

modules.d/90multipath/multipathd.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
#!/bin/sh
22

33
if [ "$(getarg rd.multipath)" = "default" ] && [ ! -e /etc/multipath.conf ]; then
4-
mkdir -p /etc/multipath/multipath.conf.d
4+
# mpathconf requires /etc/multipath to already exist
5+
mkdir -p /etc/multipath
56
mpathconf --enable
67
fi
78

0 commit comments

Comments
 (0)