summaryrefslogtreecommitdiffstats
path: root/storage/__init__.py
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2009-04-28 17:05:37 -0400
committerPeter Jones <pjones@redhat.com>2009-04-28 17:26:56 -0400
commit8f00043e754a4a8c4919fdbfbe5984a439bc3d7b (patch)
tree4f1d03718280a4b2b48e882c01f7034be059e589 /storage/__init__.py
parent3841180e4d470712a015d4bc20f8ce4ec23a99a0 (diff)
downloadanaconda-8f00043e754a4a8c4919fdbfbe5984a439bc3d7b.tar.gz
anaconda-8f00043e754a4a8c4919fdbfbe5984a439bc3d7b.tar.xz
anaconda-8f00043e754a4a8c4919fdbfbe5984a439bc3d7b.zip
Use device.format.mountType insead of device.format.type for fstab.
If available, use device.format.mountType instead of device.format.type when writing out fstab. This way we write out the real fstype name, not the UI name.
Diffstat (limited to 'storage/__init__.py')
-rw-r--r--storage/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/__init__.py b/storage/__init__.py
index de3f202d1..d7b53b61a 100644
--- a/storage/__init__.py
+++ b/storage/__init__.py
@@ -1802,7 +1802,7 @@ class FSSet(object):
if not device.format.mountable and device.format.type != "swap":
continue
- fstype = device.format.type
+ fstype = getattr(device.format, "mountType", device.format.type)
if fstype == "swap":
mountpoint = "swap"
options = device.format.options