Skip to content

Commit

Permalink
Merge pull request #265 from OneBuildMan/no_prompt
Browse files Browse the repository at this point in the history
Added dpkg option for no prompt
  • Loading branch information
Dany9966 authored Sep 27, 2023
2 parents 8db8b63 + 667ce18 commit b53cf32
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion coriolis/osmorphing/debian.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,9 @@ def install_packages(self, package_names):
try:
apt_get_cmd = (
'/bin/bash -c "DEBIAN_FRONTEND=noninteractive '
'apt-get install %s -y"' % " ".join(package_names))
'apt-get install %s -y '
'-o Dpkg::Option::=\'--force-confdef\'"' % (
" ".join(package_names)))
self._exec_cmd_chroot(apt_get_cmd)
except Exception as err:
raise exception.FailedPackageInstallationException(
Expand Down

0 comments on commit b53cf32

Please sign in to comment.