Bug 9581 - VagrantFile provisioning step fails due to issue with grub-pc update
Summary: VagrantFile provisioning step fails due to issue with grub-pc update
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2016.11
Hardware: All Mac OS
: P5 normal
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-12 23:00 UTC by Robin Iddon
Modified: 2017-02-26 20:19 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments
Patch to correct provisioning step in Vagrantfile (607 bytes, patch)
2017-01-12 23:00 UTC, Robin Iddon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Iddon 2017-01-12 23:00:36 UTC
Created attachment 6851 [details]
Patch to correct provisioning step in Vagrantfile

If you follow the steps in the manual to launch vagrant (download VagrantFile, run vagrant up) then the resulting VirtualBox VM hangs during the provisioning because the grub-pc update is asking a question but there is no interactive context in which the user can answer it.

The solution is to run the apt-get update with not only -y but also some magic options that make sure it really doesn't ask any questions.

The issue is described here:

http://askubuntu.com/questions/146921/how-do-i-apt-get-y-dist-upgrade-without-a-grub-config-prompt

I attach a patch that makes it so.