From 2def397a8a7004f6a452bfb643134ba4ef299d58 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Wed, 10 Jan 2024 21:18:02 +0100 Subject: [PATCH] Need those classic option for noninteractive apt etc.. --- lib/tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/tests.sh b/lib/tests.sh index da1e740..3479cd6 100644 --- a/lib/tests.sh +++ b/lib/tests.sh @@ -13,8 +13,9 @@ _PREINSTALL_APT_DEPS() log_small_title "Preinstalling apt dependencies before creating the initial snapshot..." RUN_INSIDE_LXC apt install $apt_deps || true + apt="LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0" # Execute the command given in argument in the container and log its results. - lxc exec $LXC_NAME -t -- /bin/bash -c "apt install $apt_deps" | tee -a "$full_log" >/dev/null + lxc exec $LXC_NAME -t -- /bin/bash -c "$apt update; $apt install $apt_deps" | tee -a "$full_log" >/dev/null }