Browse Source

avoid grub-install asking interactively for device

Thomas Waldmann 4 years ago
parent
commit
69605435c3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      Vagrantfile

+ 2 - 0
Vagrantfile

@@ -11,6 +11,8 @@ def packages_debianoid(user)
   return <<-EOF
     export DEBIAN_FRONTEND=noninteractive
     apt-get update
+    # in case we get a grub update, it must not interactively ask for boot device:
+    echo "set grub-pc/install_devices /dev/sda" | debconf-communicate
     # install all the (security and other) updates
     apt-get dist-upgrade -y
     # for building borgbackup and dependencies: