我有一个PXE启动安装程序,通过Kickstart安装CentOS 5和Ubuntu 10.04。 我使用LVM并安装CentOS而无需任何用户交互,但Ubuntu总是要求在分区过程中“确认将更改写入磁盘并configurationLVM”。 如果我不使用LVM,Ubuntu不会要求任何确认,只是对磁盘进行分区。
kickstart文件中处理分区的部分如下所示:
#System bootloader configuration bootloader --location=mbr #Clear the Master Boot Record zerombr yes #Partition clearing information clearpart --all --initlabel #Disk partitioning information part /boot --fstype ext2 --size 200 --asprimary part swap --size 1024 part pv.01 --size 1 --grow volgroup rootvg pv.01 logvol / --fstype ext4 --vgname=rootvg --size=1 --grow --name=rootvol
我怎么能告诉Ubuntu总是接受设置,而不select屏幕上的“是”? 有没有像confirm all选项?
好吧,我find了解决我的问题,你必须使用preseed选项来确认LVM问题。 只需将以下行添加到Kickstart文件。
preseed partman-lvm/confirm_nooverwrite boolean true
在文件ks.cfg中
preseed partman-lvm / device_remove_lvm布尔值true preseed partman / confirm_write_new_label布尔值true preseed partman /确认布尔真实 preseed partman / confirm_nooverwrite布尔值true