Is there any way to decide swap size in %pre section depending on the amount of RAM in the server during kickstart installation?

Solution Verified - Updated -

Issue

  • Need to install Red Hat Enterprise Linux 6 on multiple hardware having variable physical memories.
  • Is there any way to decide/calculate size of swap partition during installation through kickstart?

Environment

  • Red Hat Enterprise Linux 5/6/7
  • Kickstart installation
  • Swap

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content