[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] Use device.format.mountType insead of device.format.type for fstab.
- From: Peter Jones <pjones redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] Use device.format.mountType insead of device.format.type for fstab.
- Date: Tue, 28 Apr 2009 17:06:52 -0400
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.
---
storage/__init__.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/storage/__init__.py b/storage/__init__.py
index de3f202..d7b53b6 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
--
1.6.2.2
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]