Hi,

I faced the same exact trouble some months ago with new Linux Workstations.
I did not had the choice : _MUST_ install via a gpt part.

This is what I put in my Kickstart to fix the issue and deploy the
Worstations (CentOS 6.5):

















*# partition Disk Sectionclearpart --all --initlabel
part /boot --fstype=ext4 --size=500 --asprimary
part /boot/efi --fstype=efi --grow --maxsize=200 --size=50 --asprimary
part / --fstype=ext4 --size=38000 --asprimary
#part swap --size=2048
part swap --hibernation
part /Lwork --fstype=ext4 --size=1 --grow%packages
--ignoremissing...efibootmgr.x86_64...%post
--log=/root/ks-post.log...# Enable our EFI entry in the stupid EFI
Bios provider !
/usr/sbin/efibootmgr
/usr/sbin/efibootmgr -b 0000 -B
/usr/sbin/efibootmgr -c -w -L 'CentOS' -l \\EFI\\redhat\\grub.efi
/usr/sbin/efibootmgr -v
...*

I guess this looks like an ugly hack... But I was able to automate installation,

since I did not find any informations at the time to deploy the WS.

See the man page of efibootmgr to understand what it does to your system.

Be very careful with options *-b 0000* and *-B* since it delete the
first boot entry !

Look at the */boot partitions to be complete.*

Hope it will help you. Let us know. :-)


Regards,


*Michael PATRIS*
Thales Alenia Space Belgium


2014-12-15 23:33 GMT+01:00 Albino A. Aveleda <b...@coc.ufrj.br>:
>
> Dear all,
>
> I have to use the GPT partition because my disk array is bigger than 2TB.
> I am using CentOS 6.5 and cobbler 2.6.3.
> I added the pre section in my kickstart to create a partiotion with parted
> command, but it didn't work. I looked for on Internet but I can't find the
> error.
> Part of my kickstart is below. What do I do wrong?
>
> ...
> # Disk
> clearpart --none
> part /boot --fstype="ext4" --onpart=sda1
> part swap --onpart=sda2
> part / --fstype="ext4" --onpart=sda3
>
> %packages
> ...
> %end
>
> %pre
> parted -s /dev/sda mklabel gpt
> parted -s /dev/sda unit MB mkpart primary 1 300
> parted -s /dev/sda unit MB mkpart primary 300 1024
> parted -s /dev/sda unit MB mkpart primary 1024 -1
> parted -s /dev/sda set 1 boot on
> parted -s /dev/sda set 2 swap on
> %end
>
> Best regards,
> Bino
>
> _______________________________________________
> cobbler mailing list
> cobbler@lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>
_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler

Reply via email to