From caafd56fedf621ca75230f0efa83310b3c0b37ea Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Tue, 7 Feb 2023 12:50:04 +0100 Subject: [PATCH] Moar damn commands getting stuck forever for no reason... --- lib/lxc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/lxc.sh b/lib/lxc.sh index b52bd79..5c8c1fb 100644 --- a/lib/lxc.sh +++ b/lib/lxc.sh @@ -193,7 +193,7 @@ _LXC_START_AND_WAIT() { # Wait for container to start, we are using systemd to check this, # for the sake of brevity. for j in $(seq 1 10); do - if lxc exec "$1" -- systemctl isolate multi-user.target >/dev/null 2>/dev/null; then + if lxc exec "$1" -- timeout 30 systemctl isolate multi-user.target >/dev/null 2>/dev/null; then break fi