+def abnormal_exit(rc=DEFAULT_ABNORMAL_RC):
+ """The preferred way to end the installer after an error."""
+ # vtActivate does not work on certain ppc64 machines
+ try:
+ isys.vtActivate(1)
+ except SystemError:
+ pass
+ sys.exit(rc)
+
## Get the size of a directory and all its subdirectories.
# @param dir The name of the directory to find the size of.
# @return The size of the directory in kilobytes.
diff --git a/storage/__init__.py b/storage/__init__.py
index e37f9e9..05d076f 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -105,7 +105,7 @@ def storageInitialize(anaconda):
"could not be found. Please check your "
"parameters and try again.") % devspec,
type="custom", custom_buttons = [_("_Exit installer")])
- sys.exit(1)
+ iutil.abnormal_exit()
else:
storage.reset()
--
1.6.6
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list