Browse Source

avoid grub-install asking interactively for device

Thomas Waldmann 4 năm trước cách đây
mục cha
commit
69605435c3
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      Vagrantfile

+ 2 - 0
Vagrantfile

@@ -11,6 +11,8 @@ def packages_debianoid(user)
   return <<-EOF
   return <<-EOF
     export DEBIAN_FRONTEND=noninteractive
     export DEBIAN_FRONTEND=noninteractive
     apt-get update
     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
     # install all the (security and other) updates
     apt-get dist-upgrade -y
     apt-get dist-upgrade -y
     # for building borgbackup and dependencies:
     # for building borgbackup and dependencies: