fix crash due to permissions when clearing update staging dir (#21790)

old-commit-hash: 3a7444250c
commatwo_master
Adeeb Shihadeh 4 years ago committed by GitHub
parent 7461f1ff5a
commit 8b8e77575c
  1. 2
      selfdrive/updated.py

@ -167,6 +167,8 @@ def init_overlay() -> None:
params.put_bool("UpdateAvailable", False)
set_consistent_flag(False)
dismount_overlay()
if TICI:
run(["sudo", "rm", "-rf", STAGING_ROOT])
if os.path.isdir(STAGING_ROOT):
shutil.rmtree(STAGING_ROOT)

Loading…
Cancel
Save