]> git.seodisparate.com - AnotherAURHelper/commitdiff
Set 5 attempts to umount tmpfs
authorStephen Seo <seo.disparate@gmail.com>
Fri, 17 Nov 2023 11:40:44 +0000 (20:40 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Fri, 17 Nov 2023 11:40:44 +0000 (20:40 +0900)
update.py

index a75457519d3954947c0f1e3ec4d21839b11c36df..e9fcbf6a4178d4f1b1967da41a0e320a9d5d3363 100755 (executable)
--- a/update.py
+++ b/update.py
@@ -2080,8 +2080,9 @@ if __name__ == "__main__":
                     (
                         "/usr/bin/env",
                         "sudo",
-                        "umount",
-                        tmpfs_path,
+                        "bash",
+                        "-c",
+                        f"for ((i=0; i<5; ++i)); do if umount {tmpfs_path}; then break; fi; sleep 1; done",
                     )
                 ),
                 other_state["tmpfs_chroot"],