Skip to content

Commit c89ce9e

Browse files
committed
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
1 parent d2d0ed2 commit c89ce9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/filesystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def main():
9797
cmd = None
9898
if fstype in ['ext2', 'ext3', 'ext4', 'ext4dev']:
9999
force_flag="-F"
100-
elif fstype in ['btrfs']:
100+
elif fstype in ['xfs', 'btrfs']:
101101
force_flag="-f"
102102
else:
103103
force_flag=""

0 commit comments

Comments
 (0)