diff options
author | Christian Pointner <equinox@spreadspace.org> | 2018-01-08 11:07:54 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2018-01-08 11:07:54 +0100 |
commit | d95d7948b5ed4d922539e22b4d0a06083527523b (patch) | |
tree | 6de9e8f870747e137b154c9b967011c26283aac5 /roles/vm-install/templates/preseed_debian-stretch.cfg.j2 | |
parent | kubernetes net role works now (diff) |
install security updates in installer late_command
Diffstat (limited to 'roles/vm-install/templates/preseed_debian-stretch.cfg.j2')
-rw-r--r-- | roles/vm-install/templates/preseed_debian-stretch.cfg.j2 | 1 |
1 files changed, 1 insertions, 0 deletions
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" |