1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

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
This commit is contained in:
jravetch 2014-09-29 15:40:58 -07:00 committed by Matt Clay
parent e9f98c0efc
commit 2a8fc63645

View file

@ -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=""