bootlog: only do nvme checks on tici (#25634)
old-commit-hash: 502a39219932172d52ee0f280c5200ba11bca0c9
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user