updated: check overlay mounted

old-commit-hash: d2869f4779495685730c5eb27e90fabf559f68d4
This commit is contained in:
Adeeb Shihadeh
2022-09-26 16:57:21 -07:00
parent 0361b6364d
commit 7e200374a8
+1 -1
View File
@@ -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()):