bootlog: only do nvme checks on tici (#25634)

pull/25642/head
Jeroen 3 years ago committed by GitHub
parent 6c39382d71
commit 502a392199
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      selfdrive/loggerd/bootlog.cc

@ -26,10 +26,13 @@ static kj::Array<capnp::word> build_boot_log() {
// Gather output of commands
std::vector<std::string> 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];

Loading…
Cancel
Save