[PATCH] Force swap formatting if (kickstart or cmdline) and autopart (#526549).

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

 



If the user is doing a kickstart or cmdline install and autopart is
selected for installation, force recreating the swap device for
OldSwapError, SuspendError, or UnknownSwapError.
---
 storage/__init__.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index 0a9dad0..6a86f7b 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1638,6 +1638,11 @@ class FSSet(object):
 
     def turnOnSwap(self, anaconda, upgrading=None):
         def swapErrorDialog(msg, device):
+            if (anaconda.isKickstart or flags.cmdline.has_key("cmdline")) and \
+               anaconda.id.storage.doAutoPart:
+                device.format.create(force=True)
+                return True
+
             if not anaconda.intf:
                 sys.exit(0)
 
-- 
1.6.2.5

_______________________________________________
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