summaryrefslogtreecommitdiff
path: root/roles/preseed/templates/preseed_ubuntu-bionic.cfg.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/preseed/templates/preseed_ubuntu-bionic.cfg.j2')
-rw-r--r--roles/preseed/templates/preseed_ubuntu-bionic.cfg.j26
1 files changed, 4 insertions, 2 deletions
diff --git a/roles/preseed/templates/preseed_ubuntu-bionic.cfg.j2 b/roles/preseed/templates/preseed_ubuntu-bionic.cfg.j2
index b9263074..6129aa69 100644
--- a/roles/preseed/templates/preseed_ubuntu-bionic.cfg.j2
+++ b/roles/preseed/templates/preseed_ubuntu-bionic.cfg.j2
@@ -46,7 +46,10 @@ d-i time/zone string Europe/Vienna
d-i clock-setup/ntp boolean false
-d-i partman-auto/disk string /dev/{{ hostvars[hostname].install_cooked.disks.primary }}
+d-i partman/early_command string \
+ debconf-set partman-auto/disk "$(readlink -f {{ hostvars[hostname].install_cooked.disks.primary }})"; \
+ debconf-set grub-installer/choose_bootdev "$(readlink -f {{ hostvars[hostname].install_cooked.disks.primary }})"
+
d-i partman-auto/method string lvm
d-i partman-auto/purge_lvm_from_device boolean true
d-i partman-auto-lvm/new_vg_name string {{ hostvars[hostname].host_name }}
@@ -106,7 +109,6 @@ d-i pkgsel/upgrade select safe-upgrade
popularity-contest popularity-contest/participate boolean false
d-i pkgsel/update-policy select none
-d-i grub-installer/choose_bootdev string /dev/{{ hostvars[hostname].install_cooked.disks.primary }}
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean false