[PATCH 4/6] Fix ordering of arguments to xfs_admin for writing fs label. (#556546)

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

 



xfs_admin expects -L <label> <device>.
---
 storage/formats/fs.py |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index 3aee981..22291d6 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)
 
 
-- 
1.6.6

_______________________________________________
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