I have a PXE Boot Setup for installing CentOS 5 and Ubuntu 10.04 via Kickstart. I use LVM and installing CentOS without any user interaction works but Ubuntu always asks to "confirm to write changes to disk and configure LVM" during partitioning. If I don't use LVM, Ubuntu will not ask for any confirmation and just partitions the disk.
The part of the kickstart file where I handle the partitions looks like this:
#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
How can I tell Ubuntu to always accept the settings without selecting "yes" on the screen? Is there something like a confirm all
option?
Ok, I found the solution to my problem, you have to use the preseed option to confirm the LVM question. Just add the following line to the Kickstart file.
In the file ks.cfg