diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-01-06 17:20:48 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-01-06 17:20:48 +0100 |
commit | 67470c57d1681e3bbb00db2aca31be544c325300 (patch) | |
tree | 99c6ed9c63e8a0f1c9d114a76c6b74fa721290ef /roles/preseed/templates/preseed_ubuntu-bionic.cfg.j2 | |
parent | added management port in elevate router config (diff) |
improved disk selection for preseed
Diffstat (limited to 'roles/preseed/templates/preseed_ubuntu-bionic.cfg.j2')
-rw-r--r-- | roles/preseed/templates/preseed_ubuntu-bionic.cfg.j2 | 6 |
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 |