Add trick to avoid grub question on how to update the configuration

This commit is contained in:
Alexandre Aubin 2019-01-07 16:22:04 +01:00 committed by GitHub
parent 4909de863a
commit 1a59ec1918
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -252,6 +252,15 @@ function upgrade_system() {
libtext-iconv-perl \
|| return 1
# Manually upgrade grub stuff in non-interactive mode,
# otherwise a weird technical question is asked to the user
# regarding how to upgrade grub's configuration...
DEBIAN_FRONTEND=noninteractive \
apt_get_wrapper -o Dpkg::Options::="--force-confold" \
-y install --only-upgrade \
grub-common grub2-common \
|| true
apt_get_wrapper -o Dpkg::Options::="--force-confold" \
-y dist-upgrade \
|| return 2