From 502a39219932172d52ee0f280c5200ba11bca0c9 Mon Sep 17 00:00:00 2001 From: Jeroen Date: Fri, 2 Sep 2022 04:05:15 +0200 Subject: [PATCH] bootlog: only do nvme checks on tici (#25634) --- selfdrive/loggerd/bootlog.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/selfdrive/loggerd/bootlog.cc b/selfdrive/loggerd/bootlog.cc index 90ba487ff0..6ff052655a 100644 --- a/selfdrive/loggerd/bootlog.cc +++ b/selfdrive/loggerd/bootlog.cc @@ -26,10 +26,13 @@ static kj::Array build_boot_log() { // Gather output of commands std::vector bootlog_commands = { - "[ -e /dev/nvme0 ] && sudo nvme smart-log --output-format=json /dev/nvme0", "[ -x \"$(command -v journalctl)\" ] && journalctl", }; + if (Hardware::TICI()) { + bootlog_commands.push_back("[ -e /dev/nvme0 ] && sudo nvme smart-log --output-format=json /dev/nvme0"); + } + auto commands = boot.initCommands().initEntries(bootlog_commands.size()); for (int j = 0; j < bootlog_commands.size(); j++) { auto lentry = commands[j];