summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2005-03-23 23:06:04 +0000
committerPeter Jones <pjones@redhat.com>2005-03-23 23:06:04 +0000
commit49ebfcd05d1d86c86e3bf225f99ff6e8aae7ed48 (patch)
tree10005916d144ef77a20c555ff983b2648dd5c05e /fsset.py
parent74ca0d87c8cfe4adff3ebdc6e7d55096c9c34871 (diff)
downloadanaconda-49ebfcd05d1d86c86e3bf225f99ff6e8aae7ed48.tar.gz
anaconda-49ebfcd05d1d86c86e3bf225f99ff6e8aae7ed48.tar.xz
anaconda-49ebfcd05d1d86c86e3bf225f99ff6e8aae7ed48.zip
fix mkfs on xfs
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/fsset.py b/fsset.py
index 4874e4f38..1ef49520c 100644
--- a/fsset.py
+++ b/fsset.py
@@ -419,9 +419,13 @@ class xfsFileSystem(FileSystemType):
def formatDevice(self, entry, progress, chroot='/'):
devicePath = entry.device.setupDevice(chroot)
+ xfsBytesPerInode = 2048
+ if entry.bytesPerInode < 2048:
+ xfsBytesPerInode = entry.bytesPerInode
+
rc = iutil.execWithRedirect("/usr/sbin/mkfs.xfs",
["mkfs.xfs", "-f", "-l", "internal",
- "-i size=" + str(entry.bytesPerInode),
+ "-i", "size=" + str(xfsBytesPerInode),
devicePath ],
stdout = "/dev/tty5",
stderr = "/dev/tty5")