From 23963bdb068db9dbc4af9305d6d48e389550a7d6 Mon Sep 17 00:00:00 2001 From: "Michael S. Fischer" Date: Tue, 12 Jan 2016 08:28:23 -0800 Subject: [PATCH] autoremove: always work non-interactively Some packages (e.g. libpam-ck-connector) attempt to present a dialog when being removed, interrupting the convergence flow. Ensure that doesn't happen. --- recipes/default.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/recipes/default.rb b/recipes/default.rb index a8abe4a2..b5cccef8 100644 --- a/recipes/default.rb +++ b/recipes/default.rb @@ -70,6 +70,9 @@ # Automatically remove packages that are no longer needed for dependencies execute 'apt-get autoremove' do command 'apt-get -y autoremove' + environment( + 'DEBIAN_FRONTEND' => 'noninteractive' + ) only_if { apt_installed? } action :nothing end