[PATCH 4/9] Don't let a bogus root w/ empty fstab confuse the custom ui.

David Lehman dlehman at redhat.com
Wed Jul 25 21:48:29 UTC 2012


---
 pyanaconda/storage/__init__.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/storage/__init__.py b/pyanaconda/storage/__init__.py
index 38424b7..5bf1845 100644
--- a/pyanaconda/storage/__init__.py
+++ b/pyanaconda/storage/__init__.py
@@ -2696,6 +2696,9 @@ def findExistingInstallations(devicetree):
             name = "%s Linux %s for %s" % (product, version, arch)
 
         (mounts, swaps) = parseFSTab(devicetree, chroot=ROOT_PATH)
+        if not mounts and not swaps:
+            # empty /etc/fstab. weird, but I've seen it happen.
+            continue
         roots.append(Root(mounts=mounts, swaps=swaps, name=name))
         device.teardown()
 
-- 
1.7.7.6



More information about the anaconda-patches mailing list