If a label is set on a filesystem (e.g., the --label switch on a part command in a kickstart file), make sure it is set during the filesystem creation. --- storage/formats/fs.py | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/storage/formats/fs.py b/storage/formats/fs.py index ec83586..a78ecb2 100644 --- a/storage/formats/fs.py +++ b/storage/formats/fs.py @@ -342,10 +342,13 @@ class FS(DeviceFormat): if rc: raise FormatCreateError("format failed: %s" % rc, self.device) - + self.exists = True self.notifyKernel() + if self.label: + self.writeLabel(self.label) + def doMigrate(self, intf=None): if not self.exists: raise FSError("filesystem has not been created") @@ -1054,6 +1057,7 @@ class ReiserFS(FS): _type = "reiserfs" _mkfs = "mkreiserfs" _resizefs = "resize_reiserfs" + _labelfs = "reiserfstune" _modules = ["reiserfs"] _defaultFormatOptions = ["-f", "-f"] _defaultLabelOptions = ["-l"] -- 1.6.2.5 _______________________________________________ Anaconda-devel-list mailing list Anaconda-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/anaconda-devel-list