kickseed do not handle correctly --recommended option to create swap partition

Bug #492304 reported by stephane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kickseed (Ubuntu)
New
Undecided
Unassigned

Bug Description

While kickseed support kickstart swap partition "--recommended" options his implementation is not usable :

With different partition scheme we ever get a swap partition of 96 MB
This impact other system component like the oom killer ...

The issue is present in both ubuntu 8.10 and 9.04.

Here is kickseed code that handle the swap patitionning (partition.sh) :

 if [ "$filesystem" = linux-swap ] && [ "$recommended" ]; then
  size=96
  priority=512
  maxsize=300%
  partition_leave_free_space=
 else

(I guess --grow is needed as well)

Here is an example of the partition scheme used with kickseed :

clearpart --all --initlabel
part / --fstype ext3 --size=4096
part swap --recommended
part /usr --fstype ext3 --size=10240
part /var --fstype ext3 --size=4096
part /tmp --fstype ext3 --size=100 --grow

Here is the Redhat Specification concerning the swap creation :
(http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/ch-swapspace.html)

The size of your swap should be equal to twice your computer's physical RAM for up to 2 GB of physical RAM.
For physical RAM above 2 GB, the size of your swap should be equal to the amount of physical RAM above 2 GB

I get a python code that i use on RHEL to dynamicaly calculate the swap partition (cause --recommended is not well implemented on RHEL as well) based on the detection on physical available memory retrieved from /proc/meminfo.
If this code may be useful let me know

regards
Stephane

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.