From bdca2a1e254b39565cb8e4b62de70b1f47281ee0 Mon Sep 17 00:00:00 2001 From: John Carr Date: Wed, 5 Apr 2023 15:10:13 +0100 Subject: [PATCH] Add DPkg::Options::=--force-confdef --- fuselage/providers/apt.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/fuselage/providers/apt.py b/fuselage/providers/apt.py index 2a82a25b..eec786df 100644 --- a/fuselage/providers/apt.py +++ b/fuselage/providers/apt.py @@ -58,7 +58,16 @@ def apply(self): # the search returned 1, package is not installed, continue and install # it - command = ["apt-get", "install", "-q", "-y", "--force-yes", self.resource.name] + command = [ + "apt-get", + "install", + "-q", + "-y", + "--force-yes", + "-o", + "DPkg::Options::=--force-confdef", + self.resource.name + ] try: self.change(ShellCommand(command, env=env))