selfdrived: more robust NVMe check

pull/35474/head
Adeeb Shihadeh 3 days ago
parent 1668a46b6a
commit 8aadf02b2f
  1. 3
      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

Loading…
Cancel
Save