summaryrefslogtreecommitdiff
path: root/roles/cloud/install/templates
diff options
context:
space:
mode:
Diffstat (limited to 'roles/cloud/install/templates')
-rw-r--r--roles/cloud/install/templates/hetzner_installimage.conf.j25
1 files changed, 4 insertions, 1 deletions
diff --git a/roles/cloud/install/templates/hetzner_installimage.conf.j2 b/roles/cloud/install/templates/hetzner_installimage.conf.j2
index acdf42c4..5e16000d 100644
--- a/roles/cloud/install/templates/hetzner_installimage.conf.j2
+++ b/roles/cloud/install/templates/hetzner_installimage.conf.j2
@@ -13,7 +13,10 @@ DRIVE1 {{ install.disks.primary }}
DRIVE1 /dev/sda
{% endif %}
BOOTLOADER grub
-PART /boot ext4 {{ hetzner_boot_size }}
+{% if (install.efi | default(false)) %}
+PART /boot/efi esp {{ hetzner_efi_esp_size }}
+{% endif %}
+PART /boot ext4 {{ hetzner_boot_size }}
{% set system_lvm_size = install.system_lvm.size | default(hetzner_system_lvm_size_default) %}
PART lvm {{ host_name }} {{ system_lvm_size }}
{% if system_lvm_size != "all" %}