From 58463ab6f9877b2b33839f409d224d56760f4edc Mon Sep 17 00:00:00 2001 From: QUELIN Julien Date: Fri, 13 Dec 2024 11:56:56 +0100 Subject: [PATCH] Fix for issue #1578 --- include/tests_filesystems | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tests_filesystems b/include/tests_filesystems index 153c0427b..94703db98 100644 --- a/include/tests_filesystems +++ b/include/tests_filesystems @@ -860,8 +860,8 @@ AVAILABLE_MODPROBE_FS="" for FS in ${LIST_FS_NOT_SUPPORTED}; do # Check if filesystem is present in modprobe output - FIND=$(${MODPROBEBINARY} -v -n ${FS} 2>/dev/null | ${GREPBINARY} -E "/${FS}.ko" | ${TAILBINARY} -1) - if [ -n "${FIND}" ]; then + FIND=$(${MODPROBEBINARY} -v -n ${FS} 2>/dev/null) + if [ $? -eq 0 ]; then LogText "Result: found ${FS} support in the kernel (output = ${FIND})" Debug "Module ${FS} present in the kernel" LogText "Test: Checking if ${FS} is active"