Skip to content

Commit 8aadf02

Browse files
committed
selfdrived: more robust NVMe check
1 parent 1668a46 commit 8aadf02

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

selfdrive/selfdrived/selfdrived.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,8 @@ def __init__(self, CP=None):
117117
# some comma three with NVMe experience NVMe dropouts mid-drive that
118118
# cause loggerd to crash on write, so ignore it only on that platform
119119
self.ignored_processes = set()
120-
if HARDWARE.get_device_type() == 'tici' and os.path.exists('/dev/nvme0'):
120+
nvme_expected = os.path.exists('/dev/nvme0n1') or (not os.path.isfile("/persist/comma/living-in-the-moment"))
121+
if HARDWARE.get_device_type() == 'tici' and nvme_expected:
121122
self.ignored_processes = {'loggerd', }
122123

123124
# Determine startup event

0 commit comments

Comments
 (0)