mirror of
https://github.com/YunoHost/install_script.git
synced 2024-09-03 20:06:25 +02:00
Use a trick to avoid grub config prompt (#55)
* Use confold for dist-upgrade * Add trick to avoid grub question on how to update the configuration
This commit is contained in:
parent
96c59e182b
commit
22ed77c23b
1 changed files with 11 additions and 1 deletions
|
@ -252,7 +252,17 @@ function upgrade_system() {
|
|||
libtext-iconv-perl \
|
||||
|| return 1
|
||||
|
||||
apt_get_wrapper -y dist-upgrade \
|
||||
# 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
|
||||
|
||||
if is_raspbian ; then
|
||||
|
|
Loading…
Add table
Reference in a new issue