Skip to content

Commit d439357

Browse files
authored
#puppethack Fix error when creating XFS on top of another Filesystem
#puppethack: This is to fix the Lvm generated error when creating xfs on top of existing filesystem (returned 1: mkfs.xfs: /dev/mapper/myvg-mylv appears to contain an existing filesystem (ext4)).
1 parent 5e1279b commit d439357

File tree

1 file changed

+1
-1
lines changed
  • lib/puppet/provider/filesystem

1 file changed

+1
-1
lines changed

lib/puppet/provider/filesystem/lvm.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def fstype
2222
end
2323

2424
def mkfs(fs_type, name)
25-
mkfs_params = { "reiserfs" => "-q" }
25+
mkfs_params = { "reiserfs" => "-q" , "xfs" => "-f" }
2626

2727
mkfs_cmd = @resource[:mkfs_cmd] != nil ?
2828
[@resource[:mkfs_cmd]] :

0 commit comments

Comments
 (0)