summaryrefslogtreecommitdiffstats
path: root/storage/formats
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
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')
-rw-r--r--storage/formats/fs.py3
-rw-r--r--storage/formats/swap.py3
2 files changed, 6 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. """
diff --git a/storage/formats/swap.py b/storage/formats/swap.py
index e1dacb09d..713ff58bf 100644
--- a/storage/formats/swap.py
+++ b/storage/formats/swap.py
@@ -149,6 +149,9 @@ class SwapSpace(DeviceFormat):
def writeKS(self, f):
f.write("swap")
+ if self.label:
+ f.write(" --label=\"%s\"" % self.label)
+
register_device_format(SwapSpace)