summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-02-03 02:19:20 +0100
committerChristian Pointner <equinox@spreadspace.org>2019-02-03 02:19:20 +0100
commit5fec1829cde7d3529a0e8b9908dfa9dce047d1e1 (patch)
tree26470092dc690d923199ce2a73cf2191006aa655 /roles
parentremove old nomodeset option since it is not needed anymore (diff)
added ele-thetys and support for UEFI in preseed
Diffstat (limited to 'roles')
-rw-r--r--roles/preseed/templates/preseed_debian-stretch.cfg.j211
-rw-r--r--roles/preseed/templates/preseed_ubuntu-bionic.cfg.j211
-rw-r--r--roles/preseed/templates/preseed_ubuntu-xenial.cfg.j211
3 files changed, 33 insertions, 0 deletions
diff --git a/roles/preseed/templates/preseed_debian-stretch.cfg.j2 b/roles/preseed/templates/preseed_debian-stretch.cfg.j2
index efd7bb87..0d44b35f 100644
--- a/roles/preseed/templates/preseed_debian-stretch.cfg.j2
+++ b/roles/preseed/templates/preseed_debian-stretch.cfg.j2
@@ -60,8 +60,19 @@ d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
+{% if (hostvars[hostname].install_cooked.efi | default(false)) %}
+d-i partman-efi/non_efi_system boolean true
+d-i partman/choose_label string gpt
+d-i partman/default_label string gpt
+{% endif %}
d-i partman-auto/expert_recipe string \
boot-root :: \
+{% if (hostvars[hostname].install_cooked.efi | default(false)) %}
+ 100 100 128 fat16 \
+ $defaultignore{ } $primary{ } $bootable{ } \
+ method{ efi } format{ } \
+ . \
+{% endif %}
1000 10000 -1 ext4 \
$defaultignore{ } $primary{ } $bootable{ } \
method{ lvm } vg_name{ {{ hostvars[hostname].host_name }} } \
diff --git a/roles/preseed/templates/preseed_ubuntu-bionic.cfg.j2 b/roles/preseed/templates/preseed_ubuntu-bionic.cfg.j2
index 4e3e39c2..677752b6 100644
--- a/roles/preseed/templates/preseed_ubuntu-bionic.cfg.j2
+++ b/roles/preseed/templates/preseed_ubuntu-bionic.cfg.j2
@@ -65,8 +65,19 @@ d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
+{% if (hostvars[hostname].install_cooked.efi | default(false)) %}
+d-i partman-efi/non_efi_system boolean true
+d-i partman/choose_label string gpt
+d-i partman/default_label string gpt
+{% endif %}
d-i partman-auto/expert_recipe string \
boot-root :: \
+{% if (hostvars[hostname].install_cooked.efi | default(false)) %}
+ 100 100 128 fat16 \
+ $defaultignore{ } $primary{ } $bootable{ } \
+ method{ efi } format{ } \
+ . \
+{% endif %}
1000 10000 -1 ext4 \
$defaultignore{ } $primary{ } $bootable{ } \
method{ lvm } vg_name{ {{ hostvars[hostname].host_name }} } \
diff --git a/roles/preseed/templates/preseed_ubuntu-xenial.cfg.j2 b/roles/preseed/templates/preseed_ubuntu-xenial.cfg.j2
index 9c50a3d8..7dfd5d97 100644
--- a/roles/preseed/templates/preseed_ubuntu-xenial.cfg.j2
+++ b/roles/preseed/templates/preseed_ubuntu-xenial.cfg.j2
@@ -65,8 +65,19 @@ d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
+{% if (hostvars[hostname].install_cooked.efi | default(false)) %}
+d-i partman-efi/non_efi_system boolean true
+d-i partman/choose_label string gpt
+d-i partman/default_label string gpt
+{% endif %}
d-i partman-auto/expert_recipe string \
boot-root :: \
+{% if (hostvars[hostname].install_cooked.efi | default(false)) %}
+ 100 100 128 fat16 \
+ $defaultignore{ } $primary{ } $bootable{ } \
+ method{ efi } format{ } \
+ . \
+{% endif %}
1000 10000 -1 ext4 \
$defaultignore{ } $primary{ } $bootable{ } \
method{ lvm } vg_name{ {{ hostvars[hostname].host_name }} } \