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

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



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


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