Skip to content

Commit fbc8c71

Browse files
made the vagrant bootstrap script non-interactive. This fixes a problem during Vagrant set up of Ubuntu where it gets stuck on installing grub-2, because there is no human input. Without this fix, one needs to ctrl-c out of the vagrant ubuntu install, do 'vagrant ssh' into the vm, do some dpkg stuff selecting the right options for grub-2, before it succeeds. This is discouraging for new comers to vagrant and linux. (#694)
Signed-off-by: Joshua Tsang <joshua.mh.tsang@gmail.com>
1 parent ddf3cbd commit fbc8c71

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

vm-ubuntu-24.04/root-bootstrap.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818
# Print commands and exit on errors
1919
set -xe
2020

21+
export DEBIAN_FRONTEND=noninteractive
22+
2123
apt-get update
2224
apt-get -y upgrade
2325
apt-get install -y \

0 commit comments

Comments
 (0)