summaryrefslogtreecommitdiffstats
path: root/storage/formats/fs.py
diff options
context:
space:
mode:
authorDavid Cantrell <dcantrell@redhat.com>2009-10-01 11:08:13 -1000
committerDavid Cantrell <dcantrell@redhat.com>2009-10-02 10:04:13 -1000
commit47cbca433675ec8e822b547b404c95c32b789ad5 (patch)
tree0639c2cb47ff73f0226cced18f77c3d39f4d6450 /storage/formats/fs.py
parentaa7b24e979ae1902d685ec52967e2cd63a07d570 (diff)
downloadanaconda-47cbca433675ec8e822b547b404c95c32b789ad5.tar.gz
anaconda-47cbca433675ec8e822b547b404c95c32b789ad5.tar.xz
anaconda-47cbca433675ec8e822b547b404c95c32b789ad5.zip
Write label to filesystem if we have one set (#526226, #526242)
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.
Diffstat (limited to 'storage/formats/fs.py')
-rw-r--r--storage/formats/fs.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index ec8358688..a78ecb2c2 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"]