From ca154f9d798f1b420b98917c2323289f75d0f9c1 Mon Sep 17 00:00:00 2001 From: Reuben Miller Date: Sun, 4 Feb 2024 10:56:46 +0100 Subject: [PATCH] fix(apt): disable debian frontend when running apt commands Signed-off-by: Reuben Miller --- plugins/tedge_apt_plugin/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/tedge_apt_plugin/src/lib.rs b/plugins/tedge_apt_plugin/src/lib.rs index 8c3cece8ac2..40928176688 100644 --- a/plugins/tedge_apt_plugin/src/lib.rs +++ b/plugins/tedge_apt_plugin/src/lib.rs @@ -290,6 +290,7 @@ fn run_cmd(cmd: &str, args: &str) -> Result { let args: Vec<&str> = args.split_whitespace().collect(); let status = Command::new(cmd) .args(args) + .env("DEBIAN_FRONTEND", "noninteractive") .stdin(Stdio::null()) .status() .map_err(|err| InternalError::exec_error(cmd, err))?;