From 61586a7776f902efd7f20485a1a97e1174638d31 Mon Sep 17 00:00:00 2001 From: David Galloway Date: Fri, 19 Oct 2018 08:23:34 -0400 Subject: [PATCH] kernel: Update kernel using `DEBIAN_FRONTEND noninteractive` Fixes: https://tracker.ceph.com/issues/36499 Signed-off-by: David Galloway --- teuthology/task/kernel.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/teuthology/task/kernel.py b/teuthology/task/kernel.py index 0f3957a13..d29b2e8c5 100644 --- a/teuthology/task/kernel.py +++ b/teuthology/task/kernel.py @@ -1064,7 +1064,8 @@ def get_latest_image_version_deb(remote, ostype): # Ubuntu is a depend in a depend. if 'ubuntu' in ostype: try: - remote.run(args=['sudo', 'apt-get', '-y', 'install', + remote.run(args=['sudo', 'DEBIAN_FRONTEND=noninteractive', + 'apt-get', '-y', 'install', 'linux-image-current-generic']) remote.run(args=['dpkg', '-s', 'linux-image-current-generic'], stdout=output) @@ -1077,7 +1078,8 @@ def get_latest_image_version_deb(remote, ostype): except run.CommandFailedError: # Non precise ubuntu machines (like trusty) don't have # linux-image-current-generic so use linux-image-generic instead. - remote.run(args=['sudo', 'apt-get', '-y', 'install', + remote.run(args=['sudo', 'DEBIAN_FRONTEND=noninteractive', + 'apt-get', '-y', 'install', 'linux-image-generic'], stdout=output) remote.run(args=['dpkg', '-s', 'linux-image-generic'], stdout=output) -- 2.47.3