updated: check overlay mounted

pull/25896/head
Adeeb Shihadeh 3 years ago
parent a124fa22e4
commit d2869f4779
  1. 2
      selfdrive/updated.py

@ -137,7 +137,7 @@ def dismount_overlay() -> None:
def init_overlay() -> None:
# Re-create the overlay if BASEDIR/.git has changed since we created the overlay
if OVERLAY_INIT.is_file():
if OVERLAY_INIT.is_file() and os.path.ismount(OVERLAY_MERGED):
git_dir_path = os.path.join(BASEDIR, ".git")
new_files = run(["find", git_dir_path, "-newer", str(OVERLAY_INIT)])
if not len(new_files.splitlines()):

Loading…
Cancel
Save