Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion tasks/k8s.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ def install_k8s(debug=False, clean=False):
symlink_global_bin(binary_path, binary, debug=debug)

# Also install some APT dependencies
result = run("sudo apt install -y conntrack socat", shell=True, capture_output=True)
result = run(
"sudo DEBIAN_FRONTEND=noninteractive apt install -y conntrack socat",
shell=True,
capture_output=True,
)
assert result.returncode == 0, print(result.stderr.decode("utf-8").strip())
if debug:
print(result.stdout.decode("utf-8").strip())
Expand Down
8 changes: 4 additions & 4 deletions tasks/kernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,11 @@ def build_guest(debug=False, hot_replace=False):
build_kernel_base_cmd = " ".join(build_kernel_base_cmd)

# Install APT deps needed to build guest kernel
out = run(
"sudo apt install -y bison flex libelf-dev libssl-dev make",
shell=True,
capture_output=True,
sudo_cmd = (
"sudo DEBIAN_FRONTEND=noninteractive apt install -y bison flex "
"libelf-dev libssl-dev make"
)
out = run(sudo_cmd, shell=True, capture_output=True)
assert out.returncode == 0, "Error installing deps: {}".format(
out.stderr.decode("utf-8")
)
Expand Down
6 changes: 5 additions & 1 deletion tasks/util/kata.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,11 @@ def replace_agent(

# ----- Populate rootfs with base ubuntu using Kata's scripts -----

out = run("sudo apt install -y makedev multistrap", shell=True, capture_output=True)
out = run(
"sudo DEBIAN_FRONTEND=noninteractive apt install -y makedev multistrap",
shell=True,
capture_output=True,
)
assert out.returncode == 0, "Error preparing rootfs: {}".format(
out.stderr.decode("utf-8")
)
Expand Down
4 changes: 3 additions & 1 deletion tasks/util/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ def start(debug=False, clean=False):
check=True,
)
result = run(
"sudo dpkg-reconfigure ca-certificates", shell=True, capture_output=True
"sudo DEBIAN_FRONTEND=noninteractive dpkg-reconfigure ca-certificates",
shell=True,
capture_output=True,
)
assert result.returncode == 0, print(result.stderr.decode("utf-8").strip())
if debug:
Expand Down
Loading