mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
fs_type parameter is not really optional for negative part_start parameter
This commit is contained in:
parent
41a51d88f9
commit
800b1cb00b
1 changed files with 4 additions and 0 deletions
|
@ -625,6 +625,10 @@ def main():
|
||||||
if current_device['generic'].get('table', None) != label:
|
if current_device['generic'].get('table', None) != label:
|
||||||
script += "mklabel %s " % label
|
script += "mklabel %s " % label
|
||||||
|
|
||||||
|
# parted <= 3.2.153 bug: optional filesystem parameter is mandatory for negative part_start
|
||||||
|
if fs_type is None and part_start.startswith('-'):
|
||||||
|
fs_type = 'ext2'
|
||||||
|
|
||||||
# Create partition if required
|
# Create partition if required
|
||||||
if part_type and not part_exists(current_parts, 'num', number):
|
if part_type and not part_exists(current_parts, 'num', number):
|
||||||
script += "mkpart %s %s%s %s " % (
|
script += "mkpart %s %s%s %s " % (
|
||||||
|
|
Loading…
Reference in a new issue