小编Ste*_*ood的帖子

如何在没有提示的情况下在安装过程中预先将 grub 安装到设备?

我正在尝试进行全自动的 ubuntu preseed 安装。我被卡住了,因为我无法预先确定在 /dev/sda 以外的设备上安装 grub 的答案,而不必手动点击“enter”继续安装。

它说:

[!] 在硬盘上安装 Grub 引导加载程序

并正确选择我试图安装引导加载程序的设备,但它仍然需要我手动按 Enter。

你可以在这里看到它的图像:

http://i.imgur.com/lWvAHWV.png

我在 preseed 中尝试了以下值的各种组合,它们都有相同的最终结果:

# Option 1 (works when installing to /dev/sda. Prompts with sdm)
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true

# Option 2
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i grub-installer/bootdev  string /dev/sdm

# Option 3
d-i grub-installer/only_debian boolean false
d-i grub-installer/with_other_os boolean false
d-i grub-installer/bootdev  string /dev/sdm

# Option 2
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true …
Run Code Online (Sandbox Code Playgroud)

installation grub2 preseed

8
推荐指数
2
解决办法
1万
查看次数

标签 统计

grub2 ×1

installation ×1

preseed ×1