log when nvme isn't mounted (#20428)
Co-authored-by: Comma Device <device@comma.ai> old-commit-hash: 33500bf23fcda9c4404f1c09177f7e971d65fc56
This commit is contained in:
@@ -6,11 +6,13 @@ import requests
|
||||
import threading
|
||||
import time
|
||||
import traceback
|
||||
from pathlib import Path
|
||||
|
||||
from cereal import log
|
||||
import cereal.messaging as messaging
|
||||
from common.api import Api
|
||||
from common.params import Params
|
||||
from selfdrive.hardware import TICI
|
||||
from selfdrive.loggerd.xattr_cache import getxattr, setxattr
|
||||
from selfdrive.loggerd.config import ROOT
|
||||
from selfdrive.swaglog import cloudlog
|
||||
@@ -198,6 +200,9 @@ def uploader_fn(exit_event):
|
||||
cloudlog.info("uploader missing dongle_id")
|
||||
raise Exception("uploader can't start without dongle id")
|
||||
|
||||
if TICI and not Path("/data/media").is_mount():
|
||||
cloudlog.debug("NVME not mounted")
|
||||
|
||||
sm = messaging.SubMaster(['deviceState'])
|
||||
uploader = Uploader(dongle_id, ROOT)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user