If dracut is creating /etc/multipath.conf by calling mpathconf in either
multipathd-configure.service or multipathd.sh, there is a chance that
the multipath config in the real root differs. Specifically, it might
have chosen different user_friendly_names for the devices. When the
systems switches to the real root, multipath may not be able to switch
the devices to their configured names because those might already be
in use. To avoid this, call mpathconf with "--user_friendly_names n"
to create a multipath.conf with user_friendly_names disabled. If all
devices use WWID names, it is always possible for multipath to rename
them later.
Fixes
b8a92b715 ("multipath: add automatic configuration for multipath")
RemainAfterExit=yes
# mpathconf requires /etc/multipath to already exist
ExecStartPre=-/usr/bin/mkdir -p /etc/multipath
-ExecStart=/usr/sbin/mpathconf --enable
+ExecStart=/usr/sbin/mpathconf --enable --user_friendly_names n
[Install]
WantedBy=sysinit.target
if [ "$(getarg rd.multipath)" = "default" ] && [ ! -e /etc/multipath.conf ]; then
# mpathconf requires /etc/multipath to already exist
mkdir -p /etc/multipath
- mpathconf --enable
+ mpathconf --enable --user_friendly_names n
fi
if getargbool 1 rd.multipath && [ -e /etc/multipath.conf ]; then