From 1a59ec1918bf908104e7db9ba06db6e2de65372b Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Mon, 7 Jan 2019 16:22:04 +0100 Subject: [PATCH] Add trick to avoid grub question on how to update the configuration --- install_yunohost | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/install_yunohost b/install_yunohost index a743da6..898f66b 100755 --- a/install_yunohost +++ b/install_yunohost @@ -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