From: David Galloway Date: Fri, 19 Oct 2018 12:23:34 +0000 (-0400) Subject: kernel: Update kernel using `DEBIAN_FRONTEND noninteractive` X-Git-Tag: 1.1.0~298^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F1225%2Fhead;p=teuthology.git kernel: Update kernel using `DEBIAN_FRONTEND noninteractive` Fixes: https://tracker.ceph.com/issues/36499 Signed-off-by: David Galloway --- 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)