summaryrefslogtreecommitdiffstats
path: root/packages.py
diff options
context:
space:
mode:
authorMartin Sivak <msivak@redhat.com>2008-01-17 12:58:25 +0100
committerMartin Sivak <msivak@redhat.com>2008-02-22 13:50:03 +0100
commit1782191ad7e9bd5b502531483fbac4c0109d85ba (patch)
tree46a8f011893532046dfef3ccf4b2adfa81f5cbca /packages.py
parentd85f234b3e327f719fa328cb6728fc206b3677d1 (diff)
downloadanaconda-1782191ad7e9bd5b502531483fbac4c0109d85ba.tar.gz
anaconda-1782191ad7e9bd5b502531483fbac4c0109d85ba.tar.xz
anaconda-1782191ad7e9bd5b502531483fbac4c0109d85ba.zip
Catch the error emmited by lvm tools during logical volume creation process (#224636).
Diffstat (limited to 'packages.py')
-rw-r--r--packages.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/packages.py b/packages.py
index f4d4da698..98c3c71be 100644
--- a/packages.py
+++ b/packages.py
@@ -160,7 +160,15 @@ def turnOnFilesystems(anaconda):
anaconda.id.partitions.doMetaResizes(anaconda.id.diskset)
anaconda.id.fsset.growFilesystems(anaconda.id.diskset, anaconda.rootPath)
if not anaconda.id.fsset.volumesCreated:
- anaconda.id.fsset.createLogicalVolumes(anaconda.rootPath)
+ try:
+ anaconda.id.fsset.createLogicalVolumes(anaconda.rootPath)
+ except SystemError, e:
+ log.error("createLogicalVolumes failed with SystemError: %s", e.message)
+ anaconda.intf.messageWindow(_("LVM operation failed"),
+ e.message+"\n\n"+_("The installer will now exit..."),
+ type="error")
+ sys.exit(0)
+
anaconda.id.fsset.formatSwap(anaconda.rootPath)
anaconda.id.fsset.turnOnSwap(anaconda.rootPath)
anaconda.id.fsset.makeFilesystems(anaconda.rootPath,