25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
2.1KB

  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": "-1MiB"
  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": "-1MiB"
  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": "-1MiB",
  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": "-1MiB",
  121. "mdraid": "vg0"
  122. }
  123. {% endif %}
  124. ]