summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2010-02-15 14:37:26 -0600
committerDavid Lehman <dlehman@redhat.com>2010-02-16 09:20:58 -0600
commitae2dc7328d757471a4ed41f98f58e5c937b47b75 (patch)
treeebd50cb7962257e0941c12b5e60a460c95b4c63b
parent96cf6a17fbc0ad637b92ba05ea853434f5bc7e1b (diff)
downloadanaconda-ae2dc7328d757471a4ed41f98f58e5c937b47b75.tar.gz
anaconda-ae2dc7328d757471a4ed41f98f58e5c937b47b75.tar.xz
anaconda-ae2dc7328d757471a4ed41f98f58e5c937b47b75.zip
Fix ordering of arguments to xfs_admin for writing fs label. (#556546)
xfs_admin expects -L <label> <device>.
-rw-r--r--storage/formats/fs.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 3aee98169..22291d617 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -1230,6 +1230,12 @@ class XFS(FS):
_existingSizeFields = ["dblocks =", "blocksize ="]
partedSystem = fileSystemType["xfs"]
+ def _getLabelArgs(self, label):
+ argv = []
+ argv.extend(self.defaultLabelOptions)
+ argv.extend([label, self.device])
+ return argv
+
register_device_format(XFS)