Fix non-interactive mode for apt

Since sudo was laucnhed after setting DEBIAN_FRONTEND variable,
noninteractive wasn't working correctly during bindep installation.

Also patch includes temporary fix which is generally adressed in [1]
This is implemented to resolve cross-dependency and will be rolled
back once general fix will land.

[1] https://review.opendev.org/665244/

Change-Id: I44c6aa7a0266285ca67edca70cdc4450c64671d9
This commit is contained in:
Dmitriy Rabotjagov 2019-06-14 16:56:13 +03:00
parent c8b921c668
commit 1084ff6d5a
2 changed files with 3 additions and 2 deletions

View File

@ -103,8 +103,8 @@ if [[ ${#BINDEP_PKGS} > 0 ]]; then
;;
ubuntu|debian)
sudo apt-get update
DEBIAN_FRONTEND=noninteractive \
sudo apt-get -q --option "Dpkg::Options::=--force-confold" \
sudo DEBIAN_FRONTEND=noninteractive \
apt-get -q --option "Dpkg::Options::=--force-confold" \
--assume-yes install ${BINDEP_PKGS}
;;
gentoo)

View File

@ -23,3 +23,4 @@ container_networks:
physical_host: localhost
properties:
service_name: "{{ inventory_hostname }}"
tempest_install_method: source