diff options
| author | Chris Lumens <clumens@redhat.com> | 2009-10-02 16:37:34 -0400 |
|---|---|---|
| committer | Chris Lumens <clumens@redhat.com> | 2009-10-05 08:50:17 -0400 |
| commit | 18fbf467bc21c57eec4beaf90d8bbc051399a179 (patch) | |
| tree | 987a63491a353df3bd5c69439926655d86ca0ed1 /storage/formats | |
| parent | c3a63e0c154f68ef7ab5a89bfc4476ff9d6f9768 (diff) | |
| download | anaconda-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.py | 3 | ||||
| -rw-r--r-- | storage/formats/swap.py | 3 |
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) |
