From c89ce9e8d7fc481e0ad79e2c169ff28b3b5b446c Mon Sep 17 00:00:00 2001 From: jravetch Date: Mon, 29 Sep 2014 15:40:58 -0700 Subject: [PATCH] mkfs.xfs uses -f instead of -F flag mkfs.xfs uses the -f instead of -F flag to force creating a filesystem on a devices that have an existing filesystem --- system/filesystem.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/filesystem.py b/system/filesystem.py index 064c0d0af86..0de5b75e38b 100644 --- a/system/filesystem.py +++ b/system/filesystem.py @@ -97,7 +97,7 @@ def main(): cmd = None if fstype in ['ext2', 'ext3', 'ext4', 'ext4dev']: force_flag="-F" - elif fstype in ['btrfs']: + elif fstype in ['xfs', 'btrfs']: force_flag="-f" else: force_flag=""