mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-30 11:02:19 +08:00
updated: log git corruption (#2242)
* log git corruption * better cloudlog old-commit-hash: 3f40a9ee7590f95743dd5914ca81496f1419f402
This commit is contained in:
@@ -201,6 +201,11 @@ def finalize_update() -> None:
|
||||
shutil.rmtree(FINALIZED)
|
||||
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)
|
||||
cloudlog.info("done finalizing overlay")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user