summaryrefslogtreecommitdiff
path: root/roles/vm-install/templates/preseed_debian-stretch.cfg.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/vm-install/templates/preseed_debian-stretch.cfg.j2')
-rw-r--r--roles/vm-install/templates/preseed_debian-stretch.cfg.j26
1 files changed, 4 insertions, 2 deletions
diff --git a/roles/vm-install/templates/preseed_debian-stretch.cfg.j2 b/roles/vm-install/templates/preseed_debian-stretch.cfg.j2
index 8198d71b..c20b607b 100644
--- a/roles/vm-install/templates/preseed_debian-stretch.cfg.j2
+++ b/roles/vm-install/templates/preseed_debian-stretch.cfg.j2
@@ -1,5 +1,5 @@
#########################################################################
-# Radio Helsinki preseed file for Debian stretch based VMs
+# spreadspace preseed file for Debian stretch based VMs
#########################################################################
d-i debian-installer/language string en
@@ -99,4 +99,6 @@ d-i grub-installer/with_other_os boolean false
d-i finish-install/reboot_in_progress note
-d-i preseed/late_command string in-target bash -c "passwd -d root; passwd -l root; umask 077; mkdir -p /root/.ssh/; echo -e '{{ sshserver_root_keys }}' > /root/.ssh/authorized_keys"
+d-i preseed/late_command string \
+ lvremove -f {{ inventory_hostname }}/dummy; \
+ in-target bash -c "passwd -d root; passwd -l root; umask 077; mkdir -p /root/.ssh/; echo -e '{{ sshserver_root_keys }}' > /root/.ssh/authorized_keys"