[CentOS] Kickstart wrong swap size

nate centos at linuxpowered.net
Mon Dec 7 15:33:27 UTC 2009

Lars Hecking wrote:

>  The kickstart setup is currently based on CentOS 5.2 (and I cannot move to
>  5.4 yet as this is a corporate setup affecting hundreds of machines).
>  Hardcoding swap size isn't a good idea either because there's a range of
>  different memory configurations. I could however confirm that a manual,
>  graphical install from the 5.4 DVD with recommended settings creates 10GB
>  swap on a 8GB RAM machine.

For my systems I have a bit of logic in my %pre kickstart config
that looks for a swapsize command line option and uses that as the
swap size(if it doesn't find one it defaults to 4G, I really never
want my own systems swapping more than 4G, I set my VMs to 1G of


More information about the CentOS mailing list