[CentOS] Kickstart issue with UEFi

Tue Aug 23 15:49:33 UTC 2016
Paul Heinlein <heinlein at madboa.com>

On Tue, 23 Aug 2016, Phil Manuel wrote:

> On Tue, 23 Aug 2016 at 02:18 Gordon Messmer <gordon.messmer at gmail.com>
> wrote:
>
>> On 08/21/2016 11:56 PM, Phil Manuel wrote:
>>> part /boot/efi --fstype="efi" --size=200 --ondisk=sda
>>> And I have tried the latter with location as mbr still fails
>>> What am I missing ?

... lots of troubleshooting deleted ...

If all else fails, you can pull out the sledgehammer: dd. Add a %pre 
section to your kickstart.

%pre --interpreter=/usr/bin/bash
# nuke all MBR and partition info. season list of
# block devices to taste.
for BLKDEV in sda sdb; do
   dd if=/dev/zero of=/dev/$BLKDEV bs=512 count=4
done
%end

This will execute prior to anaconda trying to partition the disk. Note 
that it will erase or obfuscate all data on the disk(s) so it's 
definitely unsuited for systems on which you want to retain data.

-- 
Paul Heinlein
heinlein at madboa.com
45°38' N, 122°6' W