[PATCH 2/5] Don't traceback if disks go missing before/during partitioning.

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

 



Resolves: rhbz#709961
---
 storage/partitioning.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/storage/partitioning.py b/storage/partitioning.py
index 501f1c3..d9a9dc9 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -858,7 +858,11 @@ def doPartitioning(storage, exclusiveDisks=None):
         disks = [d for d in disks if d.name in exclusiveDisks]
 
     for disk in disks:
-        disk.setup()
+        try:
+            disk.setup()
+        except DeviceError as (msg, name):
+            log.error("failed to set up disk %s: %s" % (name, msg))
+            raise PartitioningError("disk %s inaccessible" % disk.name)
 
     partitions = storage.partitions[:]
     for part in storage.partitions:
-- 
1.7.3.4

_______________________________________________
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