[PATCH] Add --label to anaconda-ks.cfg if needed (#526223).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 storage/formats/fs.py   |    3 +++
 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 ec83586..1b389d1 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -794,6 +794,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 e1dacb0..713ff58 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)
 
-- 
1.6.4.2

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux