|
|
@@ -1,22 +1,10 @@ |
|
|
|
[ |
|
|
|
{% for hd in hard_disks %} |
|
|
|
{% set first_device = (hard_disks | first) == hd %} |
|
|
|
{ |
|
|
|
"device": "{{hd.device}}", |
|
|
|
"name": "{{hd.name}}", |
|
|
|
"label_type": "{{ _partitioning_base_profile.label_type }}", |
|
|
|
"partitions": [ |
|
|
|
{% if first_device and _partitioning_base_profile.partitions_first_device is defined %} |
|
|
|
{% for part in _partitioning_base_profile.partitions_first_device %} |
|
|
|
{{part}}, |
|
|
|
{% endfor %} |
|
|
|
{% endif %} |
|
|
|
{% if _partitioning_base_profile.partitions is defined %} |
|
|
|
{% for part in _partitioning_base_profile.partitions %} |
|
|
|
{{part}}, |
|
|
|
{% endfor %} |
|
|
|
{% endif %} #} |
|
|
|
] |
|
|
|
"device": "{{hd.device}}", |
|
|
|
"label_type": "{{ hd.label_type }}", |
|
|
|
"partitions": {{ hd.partitions + _partitioning_base_profile.partitions }} |
|
|
|
}, |
|
|
|
{% endfor %} |
|
|
|
] |