浏览代码

avoid grub-install asking interactively for device

Thomas Waldmann 4 年之前
父节点
当前提交
69605435c3
共有 1 个文件被更改,包括 2 次插入0 次删除
  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: