From: Laszlo Gombos Date: Mon, 8 Jul 2024 15:18:01 +0000 (-0400) Subject: fix(multipath): omit module if included with no multipath devices X-Git-Tag: 103~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4957ffa;p=thirdparty%2Fdracut-ng.git fix(multipath): omit module if included with no multipath devices Instead of warning the user, lets omit the module to follow 'Principle of Least Surprise'. --- diff --git a/modules.d/90multipath/module-setup.sh b/modules.d/90multipath/module-setup.sh index 7bc3043c2..4b4e8150b 100755 --- a/modules.d/90multipath/module-setup.sh +++ b/modules.d/90multipath/module-setup.sh @@ -35,8 +35,7 @@ check() { require_binaries kpartx || return 1 if [[ $_any_mpath_dev != 0 ]] && [[ ! -f /etc/multipath.conf ]]; then - dwarn "multipath: including module with no multipath devices and empty" \ - "configuration, the root disk may be unintentionally multipathed." + return 1 fi return 0