[PATCH 5/5] Handle UnknownSwapError when turning on existing swap volumes.

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

 



If we get UnknownSwapError, alert the user and offer some options.
---
 storage/__init__.py |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/storage/__init__.py b/storage/__init__.py
index 01641b1..16d9fed 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1651,6 +1651,15 @@ class FSSet(object):
 
                     if swapErrorDialog(msg, device):
                         continue
+                except UnknownSwapError:
+                    msg = _("The swap device:\n\n     %s\n\n"
+                            "does not contain a support swap volume.  In "
+                            "order to continue installation, you will need "
+                            "to format the device or skip it.") \
+                          % device.path
+
+                    if swapErrorDialog(msg, device):
+                        continue
                 except DeviceError as (msg, name):
                     if upgrading:
                         err = _("Error enabling swap device %s: %s\n\n"
-- 
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