selfdrived: more robust NVMe check

This commit is contained in:
Adeeb Shihadeh
2025-06-05 12:51:21 -07:00
parent 1668a46b6a
commit 8aadf02b2f

View File

@@ -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