From d2869f4779495685730c5eb27e90fabf559f68d4 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Mon, 26 Sep 2022 16:57:21 -0700 Subject: [PATCH] updated: check overlay mounted --- selfdrive/updated.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/updated.py b/selfdrive/updated.py index 4556876c27..f46cda3204 100755 --- a/selfdrive/updated.py +++ b/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()):