Commit fd6dbec5 authored by Aníbal Limón's avatar Aníbal Limón

actions/deploy/lxc: lxc-apt-install action add non-interactive mode

When trying to install a package that requires user configuration
(ex. keyboard-configuration) it will wait until a user input causing
a timeout.

Change-Id: Ida62487144f3796856229789313d441ce7f944e3
Signed-off-by: default avatarAníbal Limón <anibal.limon@linaro.org>
parent d53e452c
......@@ -376,8 +376,8 @@ class LxcAptInstallAction(DeployAction):
lxc_name = self.get_namespace_data(action='lxc-create-action',
label='lxc', key='name')
packages = self.parameters['packages']
cmd = ['lxc-attach', '-n', lxc_name, '--', 'apt-get', '-y',
'install'] + packages
cmd = ['lxc-attach', '-v', 'DEBIAN_FRONTEND=noninteractive', '-n', lxc_name,
'--', 'apt-get', '-y', 'install'] + packages
if not self.run_command(cmd):
raise JobError("Unable to install using apt-get in lxc container")
return connection
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment