[PATCH] minor fixups to early swap dialog

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

 



Attached is a patch which changes the early swap dialog to a Yes/No
dialog instead of an Ok/Cancel dialog.  Also, it prevents the
extremely dangerous code from being run if you're not setting up
filesystems.

Cheers,

Matt
Index: partitioning.py
===================================================================
RCS file: /usr/local/CVS/anaconda/partitioning.py,v
retrieving revision 1.167
diff -u -r1.167 partitioning.py
--- partitioning.py	10 Feb 2004 19:43:19 -0000	1.167
+++ partitioning.py	3 Apr 2005 21:30:06 -0000
@@ -100,7 +100,8 @@
             raise RuntimeError, ("Managed to not get an entry back from "
                                  "request.toEntry")
 
-    if iutil.memAvailable() > isys.EARLY_SWAP_RAM:
+    if (not flags.setupFilesystems
+        or iutil.memAvailable() > isys.EARLY_SWAP_RAM):
         return
     
     # XXX this attribute is probably going away
@@ -110,7 +111,7 @@
                               "machine, we need to turn on swap space "
                               "immediately. To do this we'll have to "
                               "write your new partition table to the disk "
-                              "immediately. Is that OK?"), "okcancel")
+                              "immediately. Is that OK?"), "yesno")
     else:
         rc = 1
         

[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