make sure persistent pstore dir exists

This commit is contained in:
Maxime Desroches
2025-10-20 15:04:06 -07:00
parent dff5ff5781
commit e19f4912dd

View File

@@ -8,6 +8,8 @@ ROOT = Path("/cache/debug/")
if __name__ == "__main__":
os.makedirs(ROOT, exist_ok=True)
boots = sorted(list(ROOT.iterdir()), key=lambda p: int(p.stem, 16), reverse=True)
# limit to 100 boots