S
S
swim3r2017-10-26 16:11:44
GRUB
swim3r, 2017-10-26 16:11:44

How to install grub via apt-get upgrade in the background?

Actually what is the point ..
There is an automated deployment of virtual machines through DSC. For virtual machines with Ubuntu and Debian, after deployment, the command "apt-get --force-yes update && apt-get --force-yes dist-upgrade" should be executed.
Actually, everything hangs on the execution of dist-upgrade.
We climb on the virtual machine and find out that everything breaks when trying to install a new version of grub. When installing manually, the system asks which section to install. By choosing a section, we get the completed task.
Question: what is needed so that when apt-get --force-yes dist-upgrade is executed, a place for grub is selected in the background.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
swim3r, 2017-10-26
@swim3r

In general, as it usually happens .. he asked, he answered.
DEBIAN_FRONTEND=noninteractive apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question