summaryrefslogtreecommitdiffstats
path: root/storage/formats/fs.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-10-02 16:37:34 -0400
committerChris Lumens <clumens@redhat.com>2009-10-05 08:50:17 -0400
commit18fbf467bc21c57eec4beaf90d8bbc051399a179 (patch)
tree987a63491a353df3bd5c69439926655d86ca0ed1 /storage/formats/fs.py
parentc3a63e0c154f68ef7ab5a89bfc4476ff9d6f9768 (diff)
downloadanaconda-18fbf467bc21c57eec4beaf90d8bbc051399a179.tar.gz
anaconda-18fbf467bc21c57eec4beaf90d8bbc051399a179.tar.xz
anaconda-18fbf467bc21c57eec4beaf90d8bbc051399a179.zip
Add --label to anaconda-ks.cfg if needed (#526223).
Diffstat (limited to 'storage/formats/fs.py')
-rw-r--r--storage/formats/fs.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index c5499429e..2f3e0ea73 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -798,6 +798,9 @@ class FS(DeviceFormat):
def writeKS(self, f):
f.write("%s --fstype=%s" % (self.mountpoint, self.type))
+ if self.label:
+ f.write(" --label=\"%s\"" % self.label)
+
class Ext2FS(FS):
""" ext2 filesystem. """