From 194070a3c33f4f9934ab47a20ef0f4545e4c5181 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Mon, 22 Apr 2024 15:14:48 -0700 Subject: [PATCH] lib.sh: need `sudo bash -c ...` to expand `fw_profile/*` as root Fixes commit 46219fad9ec8 ("case-lib/lib.sh: use sudo to access debugfs files") Signed-off-by: Marc Herbert --- case-lib/lib.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/case-lib/lib.sh b/case-lib/lib.sh index 4a2f0d48..1d2dd056 100644 --- a/case-lib/lib.sh +++ b/case-lib/lib.sh @@ -904,7 +904,9 @@ print_module_params() echo "----------------------------------------" echo "--------- Printing debugfs settings ----------" - sudo grep -H ^ /sys/kernel/debug/sof/fw_profile/* || true + # Need /bin/sh to expand '*' as root. + # Need "|| true" to support older kernels. + sudo /bin/sh -c 'grep -H ^ /sys/kernel/debug/sof/fw_profile/*' || true echo "----------------------------------------------" }