mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge pull request #11168 from dmyerscough/develop
mkpart should only create partitions and mkpartfs should support xfs
This commit is contained in:
commit
95855a0abf
@ -444,7 +444,7 @@ def mkpart(device, part_type, fs_type, start, end):
|
||||
)
|
||||
|
||||
if fs_type not in set(['ext2', 'fat32', 'fat16', 'linux-swap', 'reiserfs',
|
||||
'hfs', 'hfs+', 'hfsx', 'NTFS', 'ufs']):
|
||||
'hfs', 'hfs+', 'hfsx', 'NTFS', 'ufs', 'xfs']):
|
||||
raise CommandExecutionError(
|
||||
'Invalid fs_type passed to partition.mkpart'
|
||||
)
|
||||
@ -487,7 +487,7 @@ def mkpartfs(device, part_type, fs_type, start, end):
|
||||
)
|
||||
|
||||
if fs_type not in set(['ext2', 'fat32', 'fat16', 'linux-swap', 'reiserfs',
|
||||
'hfs', 'hfs+', 'hfsx', 'NTFS', 'ufs']):
|
||||
'hfs', 'hfs+', 'hfsx', 'NTFS', 'ufs', 'xfs']):
|
||||
raise CommandExecutionError(
|
||||
'Invalid fs_type passed to partition.mkpartfs'
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user