From 4957ffa935ea8c393c8fed867f6051da4ca43d58 Mon Sep 17 00:00:00 2001 From: Laszlo Gombos Date: Mon, 8 Jul 2024 11:18:01 -0400 Subject: [PATCH] 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'. --- modules.d/90multipath/module-setup.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 -- 2.47.3