Bläddra i källkod

make the end point of last partition configurable

master
förälder
incheckning
c588acfc13
2 ändrade filer med 5 tillägg och 4 borttagningar
  1. +1
    -0
      defaults/main.yml
  2. +4
    -4
      templates/partitions.json.j2

+ 1
- 0
defaults/main.yml Visa fil

@@ -0,0 +1 @@
partitioning_profile_last_partition_end: -1MiB

+ 4
- 4
templates/partitions.json.j2 Visa fil

@@ -22,7 +22,7 @@
{ {
"part_type": "primary", "part_type": "primary",
"start": "6GiB", "start": "6GiB",
"end": "-1MiB"
"end": "{{ partitioning_profile_last_partition_end }}"
} }
{% endif %} {% endif %}
{% if partitioning_profile == "efi-dmcrypt-lvm" %} {% if partitioning_profile == "efi-dmcrypt-lvm" %}
@@ -52,7 +52,7 @@
"name": "{{partition_name_prefix}}-crypt", "name": "{{partition_name_prefix}}-crypt",
"typecode": "8300", "typecode": "8300",
"start": "6GiB", "start": "6GiB",
"end": "-1MiB"
"end": "{{ partitioning_profile_last_partition_end }}"
} }
{% endif %} {% endif %}
{% if partitioning_profile == "bios-gpt-mdraid-lvm" %} {% if partitioning_profile == "bios-gpt-mdraid-lvm" %}
@@ -84,7 +84,7 @@
{ {
"name": "{{partition_name_prefix}}-vg0-md", "name": "{{partition_name_prefix}}-vg0-md",
"start": "6GiB", "start": "6GiB",
"end": "-1MiB",
"end": "{{ partitioning_profile_last_partition_end }}",
"mdraid": "vg0" "mdraid": "vg0"
} }
{% endif %} {% endif %}
@@ -117,7 +117,7 @@
{ {
"name": "{{partition_name_prefix}}-vg0-md", "name": "{{partition_name_prefix}}-vg0-md",
"start": "6GiB", "start": "6GiB",
"end": "-1MiB",
"end": "{{ partitioning_profile_last_partition_end }}",
"mdraid": "vg0" "mdraid": "vg0"
} }
{% endif %} {% endif %}


Laddar…
Avbryt
Spara