[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH 5/5] Handle UnknownSwapError when turning on existing swap volumes.
- From: David Cantrell <dcantrell redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH 5/5] Handle UnknownSwapError when turning on existing swap volumes.
- Date: Fri, 4 Sep 2009 14:43:17 -1000
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]