From d95d7948b5ed4d922539e22b4d0a06083527523b Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 8 Jan 2018 11:07:54 +0100 Subject: install security updates in installer late_command --- roles/vm-install/templates/preseed_debian-stretch.cfg.j2 | 1 + 1 file changed, 1 insertion(+) (limited to 'roles/vm-install/templates/preseed_debian-stretch.cfg.j2') diff --git a/roles/vm-install/templates/preseed_debian-stretch.cfg.j2 b/roles/vm-install/templates/preseed_debian-stretch.cfg.j2 index c20b607b..fcf8ddd1 100644 --- a/roles/vm-install/templates/preseed_debian-stretch.cfg.j2 +++ b/roles/vm-install/templates/preseed_debian-stretch.cfg.j2 @@ -101,4 +101,5 @@ d-i finish-install/reboot_in_progress note d-i preseed/late_command string \ lvremove -f {{ inventory_hostname }}/dummy; \ + in-target bash -c "apt-get update -q && apt-get full-upgrade -y -q"; \ 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" -- cgit v1.2.3