Skip to content

Commit 48a1f97

Browse files
Johan-Liebert1cgwalters
authored andcommitted
ci: Fix debian CI
Building dockerfile was failing with ``` Configuration file '/etc/systemd/system.conf' ==> File on system created by you or by a script. ==> File also in package provided by package maintainer. What would you like to do about it ? Your options are: [...] ``` Use non-interactive debian frontend and pass options to apt-get to use default actions whereever needed and keep existing config files automatically Signed-off-by: Pragyan Poudyal <pragyanpoudyal41999@gmail.com>
1 parent 3dcad64 commit 48a1f97

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

contrib/packaging/lib.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,13 @@ pkg_install() {
3333
dnf clean all
3434
;;
3535
debian|ubuntu)
36+
export DEBIAN_FRONTEND=noninteractive
3637
debian_apt_init
3738
apt-get -o APT::Sandbox::User=root update
38-
apt-get -o APT::Sandbox::User=root install -y --no-install-recommends "$@"
39+
apt-get -o APT::Sandbox::User=root \
40+
-o Dpkg::Options::="--force-confold" \
41+
-o Dpkg::Options::="--force-confdef" \
42+
install -y --no-install-recommends "$@"
3943
rm -rf /var/lib/apt/lists/*
4044
;;
4145
*)

0 commit comments

Comments
 (0)