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:
parent
c8b921c668
commit
1084ff6d5a
@ -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)
|
||||
|
@ -23,3 +23,4 @@ container_networks:
|
||||
physical_host: localhost
|
||||
properties:
|
||||
service_name: "{{ inventory_hostname }}"
|
||||
tempest_install_method: source
|
||||
|
Loading…
Reference in New Issue
Block a user