diff --git a/include/tests_filesystems b/include/tests_filesystems index 7b2031db..2809035c 100644 --- a/include/tests_filesystems +++ b/include/tests_filesystems @@ -859,8 +859,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"