[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH 4/5] Add --same-as-ram kickstart option for swap size specification



Resolves: rhbz#744129
---
 kickstart.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/kickstart.py b/kickstart.py
index de2dbe9..37901c9 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -726,6 +726,9 @@ class PartitionData(commands.partition.F12_PartData):
             if self.recommended:
                 (self.size, self.maxSizeMB) = iutil.swapSuggestion()
                 self.grow = True
+            if self.sameAsRam:
+                (self.size, self.maxSizeMB) = iutil.swapSameAsRam()
+                self.grow = False
         # if people want to specify no mountpoint for some reason, let them
         # this is really needed for pSeries boot partitions :(
         elif self.mountpoint == "None":
-- 
1.7.4.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]