From 2f243a7f80fc0455ae73d30bb6f6e690e23a0954 Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Fri, 10 Mar 2023 23:18:13 +0100 Subject: [PATCH] Update jlmkr.py --- jlmkr.py | 1 + 1 file changed, 1 insertion(+) diff --git a/jlmkr.py b/jlmkr.py index 3f65598..7a64a1f 100755 --- a/jlmkr.py +++ b/jlmkr.py @@ -743,6 +743,7 @@ def remove_jail(jail_name): print(f"\nTrying to stop {jail_name} if it was running...") subprocess.run(['machinectl', 'stop', jail_name]) # Need to sleep since deleting immediately after stop causes problems... + # TODO: actually wait until the jail has completely stopped... shutdown may take more than 1s time.sleep(1) print(f"Cleaning up: {jail_path}") shutil.rmtree(jail_path)