Don't auto start jail without systemd
This commit is contained in:
parent
aa0d0c6d1d
commit
f030606c83
10
jlmkr.py
10
jlmkr.py
|
@ -1007,7 +1007,6 @@ def create_jail(jail_name="", config_path=None, distro="debian", release="bookwo
|
||||||
|
|
||||||
config_string = cleandoc(
|
config_string = cleandoc(
|
||||||
f"""
|
f"""
|
||||||
startup={startup}
|
|
||||||
docker_compatible={docker_compatible}
|
docker_compatible={docker_compatible}
|
||||||
gpu_passthrough_intel={gpu_passthrough_intel}
|
gpu_passthrough_intel={gpu_passthrough_intel}
|
||||||
gpu_passthrough_nvidia={gpu_passthrough_nvidia}
|
gpu_passthrough_nvidia={gpu_passthrough_nvidia}
|
||||||
|
@ -1131,9 +1130,12 @@ def create_jail(jail_name="", config_path=None, distro="debian", release="bookwo
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
if agree("Continue?", "n"):
|
print("Autostart has been disabled.")
|
||||||
cleanup(jail_path)
|
print("You need to start this jail manually.")
|
||||||
return 1
|
startup = 0
|
||||||
|
start_now = False
|
||||||
|
|
||||||
|
config_string = f"startup={startup}\n" + config_string
|
||||||
|
|
||||||
with contextlib.suppress(FileNotFoundError):
|
with contextlib.suppress(FileNotFoundError):
|
||||||
# Remove config which systemd handles for us
|
# Remove config which systemd handles for us
|
||||||
|
|
Loading…
Reference in New Issue