3

People have run into this issue before :

How to select GRUB install device

What do I select for "GRUB install devices" after an update?

but they weren't looking for an unattended solution.

Windows 7 + Virtual Box 4.2.16 + Vagrant 1.2.2

I'm creating an unattended Vagrant install/upgrade for precise64 (Ubuntu 12.04 LTS Server 64 ).

My Vagrantfile specifies to install precise64 image and then kick-off boostrap.sh

bootstrap.sh

apt-get update -y
apt-get upgrade -y

Things proceed along swimmingly until apt-get upgrade -y eventually pops-up this GRUP dialog :

The GRUB boot loader was previously installed to a disk that is no longer present, ... 

Based on the forum posts referenced above, I know this to be a bogus warning and even if /dev/sda is selected for GRUB install device , the only way out of the dialog is to specify that GRUB not be installed.

However, I need a way to blow through this dialog for an unattended Ubuntu install/update/upgrade.

Any ideas ?

0

1 Answer 1

0

Sounds like you'll want to change the debconf question priority and/or change the frontend to noninteractive. See debconf(7)

1
  • Thanks geirha. debconf is very interesting because my understanding is that a Vagrant virtual image of Ubuntu does not require a multi-boot-loader ( GRUB or otherwise ) , but I'm unclear as how to incorporate debconf into a shell that is meant to run in unattended mode.
    – BaltoStar
    Jul 30, 2013 at 6:14

Not the answer you're looking for? Browse other questions tagged .