diff --git a/home/.chezmoiscripts/debian/run_onchange_before_10-install-debian-dependencies.tmpl b/home/.chezmoiscripts/debian/run_onchange_before_10-install-debian-dependencies.tmpl index 0bc497fc..bf214c94 100644 --- a/home/.chezmoiscripts/debian/run_onchange_before_10-install-debian-dependencies.tmpl +++ b/home/.chezmoiscripts/debian/run_onchange_before_10-install-debian-dependencies.tmpl @@ -17,6 +17,12 @@ logg info 'Dependencies: {{ $packages | sortAlpha | uniq | join " " -}}' logg info 'Running `sudo apt-get update`' sudo apt-get update +### Update debconf for non-interactive installation +if command -v dpkg-reconfigure > /dev/null; then + logg info 'Running sudo dpkg-reconfigure debconf -f noninteractive -p critical' + sudo dpkg-reconfigure debconf -f noninteractive -p critical +fi + ### Install packages if they are not already present for PACKAGE in {{ $packages | sortAlpha | uniq | join " " -}}; do logg info 'Checking for presence of `'"$PACKAGE"'`' diff --git a/home/.chezmoiscripts/ubuntu/run_onchange_before_10-install-ubuntu-dependencies.tmpl b/home/.chezmoiscripts/ubuntu/run_onchange_before_10-install-ubuntu-dependencies.tmpl index d70b572f..e2cfab8e 100644 --- a/home/.chezmoiscripts/ubuntu/run_onchange_before_10-install-ubuntu-dependencies.tmpl +++ b/home/.chezmoiscripts/ubuntu/run_onchange_before_10-install-ubuntu-dependencies.tmpl @@ -17,6 +17,12 @@ logg info 'Dependencies: {{ $packages | sortAlpha | uniq | join " " -}}' logg info 'Running `sudo apt-get update`' sudo apt-get update +### Update debconf for non-interactive installation +if command -v dpkg-reconfigure > /dev/null; then + logg info 'Running sudo dpkg-reconfigure debconf -f noninteractive -p critical' + sudo dpkg-reconfigure debconf -f noninteractive -p critical +fi + ### Install packages if they are not already present for PACKAGE in {{ $packages | sortAlpha | uniq | join " " -}}; do logg info 'Checking for presence of `'"$PACKAGE"'`'