[pykickstart][PATCH] Add --same-sa-ram option for swap size specification (#744129)

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

 



---
 pykickstart/commands/partition.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/pykickstart/commands/partition.py b/pykickstart/commands/partition.py
index 70b2283..c66509e 100644
--- a/pykickstart/commands/partition.py
+++ b/pykickstart/commands/partition.py
@@ -168,6 +168,7 @@ class F12_PartData(F11_PartData):
 
         self.escrowcert = kwargs.get("escrowcert", "")
         self.backuppassphrase = kwargs.get("backuppassphrase", False)
+        self.sameAsRam = kwargs.get("sameAsRam", False)
 
     def _getArgsAsStr(self):
         retval = F11_PartData._getArgsAsStr(self)
@@ -178,6 +179,9 @@ class F12_PartData(F11_PartData):
             if self.backuppassphrase:
                 retval += " --backuppassphrase"
 
+        if self.sameAsRam:
+            retval += " --same-as-ram"
+
         return retval
 
 
@@ -228,6 +232,8 @@ class FC3_Partition(KickstartCommand):
                       callback=part_cb, nargs=1, type="string")
         op.add_option("--recommended", dest="recommended", action="store_true",
                       default=False)
+        op.add_option("--same-as-ram", dest="sameAsRam", action="store_true",
+                      default=False)
         op.add_option("--size", dest="size", action="store", type="int",
                       nargs=1)
         op.add_option("--start", dest="start", action="store", type="int",
-- 
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