From 76bf053cf54de6cf83e09d4c1c23e59298d41c90 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 31 May 2020 18:45:31 +0200 Subject: ubuntu/vm: install special kernel image package --- roles/installer/debian/preseed/templates/preseed_ubuntu-bionic.cfg.j2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'roles/installer/debian/preseed/templates/preseed_ubuntu-bionic.cfg.j2') diff --git a/roles/installer/debian/preseed/templates/preseed_ubuntu-bionic.cfg.j2 b/roles/installer/debian/preseed/templates/preseed_ubuntu-bionic.cfg.j2 index 7b305091..85a77f38 100644 --- a/roles/installer/debian/preseed/templates/preseed_ubuntu-bionic.cfg.j2 +++ b/roles/installer/debian/preseed/templates/preseed_ubuntu-bionic.cfg.j2 @@ -142,6 +142,10 @@ d-i preseed/late_command string \ lvremove -f {{ hostvars[install_hostname].host_name }}/dummy; \ in-target bash -c "swapoff -a; sed -e '/^\/swapfile/d' -i /etc/fstab; rm -f /swapfile"; \ in-target bash -c "apt-get update -q && apt-get full-upgrade -y -q"; \ +{% if preseed_virtual_machine %} + in-target bash -c "apt-get install -y -q --no-install-recommends linux-image-virtual"; \ + in-target bash -c "apt-get purge -y -q linux-image-generic intel-microcode amd64-microcode iucode-tool linux-firmware"; \ +{% endif %} {% if preseed_no_netplan %} in-target bash -c "apt-get purge -y -q netplan.io && apt-get autoremove -y -q && rm -rf /etc/netplan"; \ {% endif %} -- cgit v1.2.3