[CentOS] Kickstart issue with UEFi

Phil Manuel
Sat, 20 Aug 2016 06:35:30 -0000

Hi,

I have a test system that booted fine using "Legacy Bios? mode and using
the following Kickstart snippet configured the disks correctly:-

# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
# Disk partitioning information
part raid.01 --fstype="raid" --ondisk=sda --size=500
part raid.02 --fstype="raid" --grow --ondisk=sda --size=1
part raid.03 --fstype="raid" --ondisk=sdb --size=500
part raid.04 --fstype="raid" --grow --ondisk=sdb --size=1
raid /boot --device=0 --fstype="xfs" --level=RAID1 raid.01 raid.03
raid pv.01 --device=1 --level=RAID1 raid.02 raid.04

For UEFi I changed it to the following:-

# Clear the Master Boot Record
zerombr
# Partition clearing information
clearpart --all --initlabel
# Disk partitioning information
part raid.01 --fstype="raid" --ondisk=sda --size=500
part raid.02 --fstype="raid" --grow --ondisk=sda --size=1
part raid.03 --fstype="raid" --ondisk=sdb --size=500
part raid.04 --fstype="raid" --grow --ondisk=sdb --size=1
raid /boot --device=0 --fstype="xfs" --level=RAID1 raid.01 raid.03
part /boot/efi ?fstype=?efi? --grow --maxsize=200 --size=20
raid pv.01 --device=1 --level=RAID1 raid.02 raid.04

The install fails under UEFi due to the fact the partitions are not cleared, and
it doesn?t have any space to continue. Is there an extra step I need to do to
remove the original partitions before the new layout will work ?

Thanks