summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-04-02 18:53:21 -0500
committerDavid Lehman <dlehman@redhat.com>2009-04-02 22:09:03 -0500
commit085d9f232758d249d02e494f013ef309abfde754 (patch)
tree2a1ffb197f7047b5b5d1a430c6835d1f8753cddc
parentabd3649a49e6b2d63c7084c48a842492914dafe9 (diff)
downloadanaconda-085d9f232758d249d02e494f013ef309abfde754.tar.gz
anaconda-085d9f232758d249d02e494f013ef309abfde754.tar.xz
anaconda-085d9f232758d249d02e494f013ef309abfde754.zip
Improve handling for various nodev filesystems in fstab. (#493685, #493202)
-rw-r--r--storage/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/storage/__init__.py b/storage/__init__.py
index 9cfcd0e87..3d3ba1552 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1275,10 +1275,11 @@ class FSSet(object):
else:
# nodev filesystem -- preserve or drop completely?
format = getFormat(fstype)
- if isinstance(format, get_device_format_class("nodev")):
+ if devspec == "none" or \
+ isinstance(format, get_device_format_class("nodev")):
device = NoDevice(format)
else:
- device = Device(devspec)
+ device = StorageDevice(devspec)
if device is None:
log.error("failed to resolve %s (%s) from fstab" % (devspec,