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"