Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

7 лет назад
7 лет назад
7 лет назад
7 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. [
  2. {% set partition_name_prefix = inventory_hostname_short + '-' + name %}
  3. {% if partitioning_profile == "bios-mbr-dmcrypt-lvm" %}
  4. {
  5. "part_type": "primary",
  6. "fs_type": "btrfs",
  7. "start": "768MiB",
  8. "end": "1GiB"
  9. }
  10. {
  11. "part_type": "primary",
  12. "fs_type": "btrfs",
  13. "start": "1GiB",
  14. "end": "2GiB"
  15. }
  16. {
  17. "part_type": "primary",
  18. "fs_type": "btrfs",
  19. "start": "2GiB",
  20. "end": "6GiB"
  21. }
  22. {
  23. "part_type": "primary",
  24. "start": "6GiB",
  25. "end": "{{ partitioning_profile_last_partition_end }}"
  26. }
  27. {% endif %}
  28. {% if partitioning_profile == "efi-dmcrypt-lvm" %}
  29. {
  30. "part_type": "ESP",
  31. "start": "256MiB",
  32. "end": "768MiB"
  33. },
  34. {
  35. "name": "select",
  36. "start": "768MiB",
  37. "end": "1GiB"
  38. },
  39. {
  40. "name": "{{partition_name_prefix}}-boot",
  41. "typecode": "8300",
  42. "start": "1GiB",
  43. "end": "2GiB"
  44. },
  45. {
  46. "name": "{{partition_name_prefix}}-rescue",
  47. "typecode": "8300",
  48. "start": "2GiB",
  49. "end": "6GiB"
  50. },
  51. {
  52. "name": "{{partition_name_prefix}}-crypt",
  53. "typecode": "8300",
  54. "start": "6GiB",
  55. "end": "{{ partitioning_profile_last_partition_end }}"
  56. }
  57. {% endif %}
  58. {% if partitioning_profile == "bios-gpt-mdraid-lvm" %}
  59. {
  60. "name": "bios_boot",
  61. "start": "2MiB",
  62. "end": "4MiB",
  63. "flags": ["bios_grub"]
  64. },
  65. {% if first_device %}
  66. {
  67. "name": "{{_select_partlabel}}",
  68. "start": "768MiB",
  69. "end": "1GiB"
  70. },
  71. {% endif %}
  72. {
  73. "name": "{{partition_name_prefix}}-boot-md",
  74. "start": "1GiB",
  75. "end": "2GiB",
  76. "mdraid": "boot"
  77. },
  78. {
  79. "name": "{{partition_name_prefix}}-rescue-md",
  80. "start": "2GiB",
  81. "end": "6GiB",
  82. "mdraid": "rescue"
  83. },
  84. {
  85. "name": "{{partition_name_prefix}}-vg0-md",
  86. "start": "6GiB",
  87. "end": "{{ partitioning_profile_last_partition_end }}",
  88. "mdraid": "vg0"
  89. }
  90. {% endif %}
  91. {% if partitioning_profile == "efi-mdraid-lvm" %}
  92. {% if first_device %}
  93. {
  94. "name": "{{_efi_partlabel}}",
  95. "start": "256MiB",
  96. "end": "768MiB",
  97. "flags": ["boot"]
  98. },
  99. {
  100. "name": "{{_select_partlabel}}",
  101. "start": "768MiB",
  102. "end": "1GiB"
  103. },
  104. {% endif %}
  105. {
  106. "name": "{{partition_name_prefix}}-boot-md",
  107. "start": "1GiB",
  108. "end": "2GiB",
  109. "mdraid": "boot"
  110. },
  111. {
  112. "name": "{{partition_name_prefix}}-rescue-md",
  113. "start": "2GiB",
  114. "end": "6GiB",
  115. "mdraid": "rescue"
  116. },
  117. {
  118. "name": "{{partition_name_prefix}}-vg0-md",
  119. "start": "6GiB",
  120. "end": "{{ partitioning_profile_last_partition_end }}",
  121. "mdraid": "vg0"
  122. }
  123. {% endif %}
  124. ]