--- 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