Re: [CentOS] adding uefi to kickstart CentOS 7

2019-07-09 Thread Chris Adams
Once upon a time, Jerry Geis  said:
> I am trying to add an efi partition to my working kickstart file.

Rather than try to set the EFI partition, I just put "reqpart" in and
let the installer decide when it needs it (and how to do it).  I still
have "--location=mbr" in the bootloader line and it seems to just do the
right thing.

One other thing - you don't have a /boot - not sure if the installer
still requires that or not.

Here's an example from a KS I just used on an EFI system (I use LVM so
it's somewhat different):

zerombr
clearpart --initlabel --drives=sda
bootloader --location=mbr --boot-drive=sda
reqpart
part /boot --ondisk=sda --asprimary --size=1024 --fstype=xfs
part pv.1 --ondisk=sda --size=3600 --grow
volgroup centos pv.1
logvol / --vgname=centos --name=root --fstype=xfs --size=1536 --grow
logvol swap --vgname=centos --name=swap --size=2048

-- 
Chris Adams 
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] adding uefi to kickstart CentOS 7

2019-07-09 Thread Stephen John Smoogen
On Tue, 9 Jul 2019 at 10:57, Jerry Geis  wrote:

> I am trying to add an efi partition to my working kickstart file.
>
> bootloader --driveorder=sda --append="rhgb quiet biosdevname=0
> net.ifnames=0"
> clearpart --all --initlabel
> part / --ondisk=sda --fstype xfs --size=2 --asprimary
> part swap  --ondisk=sda   --size=4000 --asprimary
> part /boot/efi  --ondisk=sda --fstype efi --size=1000   --asprimary
>

Can you try it with a smaller size? all of ours seem to have --size=477



> part /home --ondisk=sda --fstype xfs --size=1 --asprimary --grow
>
> the line with /boot/efi is the only new item other then "removing"
> --location=mbr from the bootloader line.   The install is not working. It
> stops on the Installation part with selections 1-8.
>

We keep the --location=mbr on our efi systems.



> I see no errors on screen - but the selection for "Install source" has a
> "!" and "error setting up install source" is there. when I goto another
> console and run fdisk -l /dev/sda nothing shows so my partitions are not
> getting setup.
>
> What did I miss to setup efi ?
> Thanks,
>
> Jerry
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
>


-- 
Stephen J Smoogen.
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] adding uefi to kickstart CentOS 7

2019-07-09 Thread Jerry Geis
I am trying to add an efi partition to my working kickstart file.

bootloader --driveorder=sda --append="rhgb quiet biosdevname=0
net.ifnames=0"
clearpart --all --initlabel
part / --ondisk=sda --fstype xfs --size=2 --asprimary
part swap  --ondisk=sda   --size=4000 --asprimary
part /boot/efi  --ondisk=sda --fstype efi --size=1000   --asprimary
part /home --ondisk=sda --fstype xfs --size=1 --asprimary --grow

the line with /boot/efi is the only new item other then "removing"
--location=mbr from the bootloader line.   The install is not working. It
stops on the Installation part with selections 1-8.
I see no errors on screen - but the selection for "Install source" has a
"!" and "error setting up install source" is there. when I goto another
console and run fdisk -l /dev/sda nothing shows so my partitions are not
getting setup.

What did I miss to setup efi ?
Thanks,

Jerry
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos