From f030606c83bf1031b9f9bd3e3e1a51730911f9c0 Mon Sep 17 00:00:00 2001 From: Jip-Hop <2871973+Jip-Hop@users.noreply.github.com> Date: Fri, 16 Feb 2024 11:11:20 +0100 Subject: [PATCH] Don't auto start jail without systemd --- jlmkr.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/jlmkr.py b/jlmkr.py index 9d4d13a..2499e28 100755 --- a/jlmkr.py +++ b/jlmkr.py @@ -1007,7 +1007,6 @@ def create_jail(jail_name="", config_path=None, distro="debian", release="bookwo config_string = cleandoc( f""" - startup={startup} docker_compatible={docker_compatible} gpu_passthrough_intel={gpu_passthrough_intel} gpu_passthrough_nvidia={gpu_passthrough_nvidia} @@ -1130,10 +1129,13 @@ def create_jail(jail_name="", config_path=None, distro="debian", release="bookwo """ ) ) + + print("Autostart has been disabled.") + print("You need to start this jail manually.") + startup = 0 + start_now = False - if agree("Continue?", "n"): - cleanup(jail_path) - return 1 + config_string = f"startup={startup}\n" + config_string with contextlib.suppress(FileNotFoundError): # Remove config which systemd handles for us