我正在使用预置和 kickstart 方法组合对自定义 ubuntu 14.04 服务器进行自动安装。除了如下所示的烦人的 grub 确认消息外,一切都很正常:
kickstart 文件:
#Generated by Kickstart Configurator
#platform=AMD64 or Intel EM64T
#System language
lang en_US
#Language modules to install
langsupport en_US
#System keyboard
keyboard us
#System mouse
mouse
#System timezone
timezone Asia/Tokyo
#Root password
rootpw --disabled
#Initial user
user ubuntu --fullname "ubuntu" --iscrypted --password xxx
#Reboot after installation
reboot
#Use text mode install
text
#Install OS instead of upgrade
install
#Use CDROM installation media
cdrom
#System bootloader configuration
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
#System authorization infomation
auth --useshadow --enablemd5
#Firewall configuration
firewall --enabled
#Do not configure the X Window System
skipx
预置文件:
d-i preseed/early_command string umount /media
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition \
select Finish partitioning and write changes to disk
d-i partman/confirm boolean true
debconf-show grub-pc
这是安装后的输出:
有没有办法避免出现此消息并使安装完全自动化。提前致谢。
编辑: 这是我当前的预置文件:
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition \
select Finish partitioning and write changes to disk
d-i partman/confirm boolean true
d-i grub-installer/only_debian boolean true
d-i grub-installer/timeout string 2
答案1
嗯,您还没有在预置文件中配置任何 grub 指令。
这是我所拥有的(适用于 Ubuntu 16.04):
d-i grub-installer/only_debian boolean true
d-i grub-installer/timeout string 2