summaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-07-10 13:38:38 -0400
committerChris Lumens <clumens@redhat.com>2009-07-13 09:49:03 -0400
commit37d3b2efdddffb841ef18699f5a220b6f8de16bc (patch)
tree1c9150367c960367e57bea649f42cf71e78b851f /storage
parentc2c7efd82e22211967005c9b6df884eaeac05a11 (diff)
downloadanaconda-37d3b2efdddffb841ef18699f5a220b6f8de16bc.tar.gz
anaconda-37d3b2efdddffb841ef18699f5a220b6f8de16bc.tar.xz
anaconda-37d3b2efdddffb841ef18699f5a220b6f8de16bc.zip
Don't write optical devices to /etc/fstab (#505697).
Diffstat (limited to 'storage')
-rw-r--r--storage/__init__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/storage/__init__.py b/storage/__init__.py
index 03b987619..934b5ecd2 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1851,6 +1851,10 @@ class FSSet(object):
if not device.format.mountable and device.format.type != "swap":
continue
+ # Don't write out lines for optical devices, either.
+ if isinstance(device, OpticalDevice):
+ continue
+
fstype = getattr(device.format, "mountType", device.format.type)
if fstype == "swap":
mountpoint = "swap"