From bc7387246018da46b6fff0298b622a9cce8e386c Mon Sep 17 00:00:00 2001 From: Luis Chamberlain Date: Fri, 14 Jun 2024 17:29:33 -0700 Subject: [PATCH] _require_debugfs(): simplify and fix for debian Using findmnt -S debugfs arguments does not really output anything on debian, and is not needed, fix that. Fixes: 8e8fb3da709e ("fstests: fix _require_debugfs and call it properly") Reviewed-by: Darrick J. Wong Reviewed-by: Zorro Lang Signed-off-by: Luis Chamberlain Signed-off-by: Zorro Lang --- common/rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/rc b/common/rc index 18ad2566..30beef4e 100644 --- a/common/rc +++ b/common/rc @@ -3025,7 +3025,7 @@ _require_debugfs() local type if [ -d "$DEBUGFS_MNT" ];then - type=$(findmnt -rncv -T $DEBUGFS_MNT -S debugfs -o FSTYPE) + type=$(findmnt -rncv -T $DEBUGFS_MNT -o FSTYPE) [ "$type" = "debugfs" ] && return 0 fi -- 2.39.5