aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <patrick@georgi.software>2018-11-17 16:50:48 +0100
committerPatrick Georgi <pgeorgi@google.com>2018-11-18 17:12:17 +0000
commit94b761c8ed9c363a006329a151578e320d13c681 (patch)
tree6432e5dac6e1304969d189ad97f3b9c832578461
parent1abbf0e91d27a1e46dc8d98034d8b2e55485cfd5 (diff)
util/board_status: run dmesg with sudo
Newer kernels only allow root to access the kernel log buffer. In another case (cbmem) we use sudo to get past that, so we can expect sudo to be available here, too. Change-Id: I654422992e5ba1e98a786f65d50289efbcd46602 Signed-off-by: Patrick Georgi <patrick@georgi.software> Reviewed-on: https://review.coreboot.org/29670 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Angel Pons <th3fanbus@gmail.com>
-rwxr-xr-xutil/board_status/board_status.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/board_status/board_status.sh b/util/board_status/board_status.sh
index 4acbb6c994..bba3d1f6b1 100755
--- a/util/board_status/board_status.sh
+++ b/util/board_status/board_status.sh
@@ -381,7 +381,7 @@ elif [ -n "$REMOTE_HOST" ]; then
cmd_nonfatal $REMOTE "$cbmem_cmd -t" "${tmpdir}/${results}/coreboot_timestamps.txt"
echo "Getting remote dmesg"
- cmd $REMOTE dmesg "${tmpdir}/${results}/kernel_log.txt"
+ cmd $REMOTE sudo dmesg "${tmpdir}/${results}/kernel_log.txt"
else
echo "Verifying that CBMEM is available"
if [ $(id -u) -ne 0 ]; then