[PATCH] Avoid devices where the lvm metadata is not present (#481698)

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

 



---
 lvm.py |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/lvm.py b/lvm.py
index 0439304..2b6f90e 100644
--- a/lvm.py
+++ b/lvm.py
@@ -249,6 +249,11 @@ def pvlist():
         except:
             continue
         log("pv is %s in vg %s, size is %s" %(dev, vg, size))
+
+        # We only append if the device is valid
+        if dev == "unknown device":
+            continue
+
         pvs.append( (dev, vg, size) )
 
     return pvs
-- 
1.6.0.6

_______________________________________________
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