Какой вариант debconf используется для автоматической установки GRUB в MBR?

ПРИМЕЧАНИЕ: я использую preseed здесь, этот шаг должен выполняться автоматически из preseed config

Это последний шаг перед завершением установки, установите grub на MBR:

enter image description here

Я не уверен, какую опцию debconf следует использовать здесь, чтобы обойти этот экран; после установки я попытался получить все возможные строки debconf, но ничего не содержит mbr

2
задан 27 May 2012 в 12:14

2 ответа

Если не обнаружена другая ОС:

d-i grub-installer/only_debian boolean true

Если обнаружена другая ОС:

d-i grub-installer/with_other_os boolean true

0
ответ дан 27 May 2012 в 12:14

Рекомендуется установить загрузчик GRUB в MBR (это заменит текущий загрузчик из MBR) после установки. Потому что MBR говорит GRUB загружаться при загрузке системы.

Я нашел, как заставить его реагировать на MBR

# This is fairly safe to set, it makes grub install automatically to the MBR
# if no other operating system is detected on the machine.
d-i grub-installer/only_debian boolean true

# This one makes grub-installer install to the MBR if it also finds some other
# OS, which is less safe as it might not be able to boot that other OS.
d-i grub-installer/with_other_os boolean true

, и если вы не хотите устанавливать в MBR

# Alternatively, if you want to install to a location other than the mbr,
# uncomment and edit these lines:
#d-i grub-installer/only_debian boolean false
#d-i grub-installer/with_other_os boolean false
#d-i grub-installer/bootdev  string (hd0,0)
# To install grub to multiple disks:
#d-i grub-installer/bootdev  string (hd0,0) (hd1,0) (hd2,0)

, эти конфигурации взяты из Debian Lenny preseed file здесь

этот полезен для других примеров

0
ответ дан 27 May 2012 в 12:14

Другие вопросы по тегам:

Похожие вопросы: