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

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

 



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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux