From 8aadf02b2fd91f4e1285e18c2c7feb32d93b66f5 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 5 Jun 2025 12:51:21 -0700 Subject: [PATCH] selfdrived: more robust NVMe check --- selfdrive/selfdrived/selfdrived.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/selfdrived/selfdrived.py b/selfdrive/selfdrived/selfdrived.py index f3dabf3791..8529dff4e2 100755 --- a/selfdrive/selfdrived/selfdrived.py +++ b/selfdrive/selfdrived/selfdrived.py @@ -117,7 +117,8 @@ class SelfdriveD: # some comma three with NVMe experience NVMe dropouts mid-drive that # cause loggerd to crash on write, so ignore it only on that platform self.ignored_processes = set() - if HARDWARE.get_device_type() == 'tici' and os.path.exists('/dev/nvme0'): + nvme_expected = os.path.exists('/dev/nvme0n1') or (not os.path.isfile("/persist/comma/living-in-the-moment")) + if HARDWARE.get_device_type() == 'tici' and nvme_expected: self.ignored_processes = {'loggerd', } # Determine startup event