updated: log git corruption (#2242)

* log git corruption

* better cloudlog
old-commit-hash: 3f40a9ee75
commatwo_master
Adeeb Shihadeh 5 years ago committed by GitHub
parent 52ed05f68e
commit c23faac9df
  1. 5
      selfdrive/updated.py

@ -201,6 +201,11 @@ def finalize_update() -> None:
shutil.rmtree(FINALIZED) shutil.rmtree(FINALIZED)
shutil.copytree(OVERLAY_MERGED, FINALIZED, symlinks=True) shutil.copytree(OVERLAY_MERGED, FINALIZED, symlinks=True)
# Log git repo corruption
fsck = run(["git", "fsck", "--no-progress"], FINALIZED).rstrip()
if len(fsck):
cloudlog.error(f"found git corruption, git fsck:\n{fsck}")
set_consistent_flag(True) set_consistent_flag(True)
cloudlog.info("done finalizing overlay") cloudlog.info("done finalizing overlay")

Loading…
Cancel
Save