summaryrefslogtreecommitdiff
path: root/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2024-05-29 16:19:03 +0200
committerChristian Pointner <equinox@spreadspace.org>2024-05-29 16:19:03 +0200
commit31c522535020901e65f6370c79df7e0be241e4fb (patch)
tree58e9b9e99749589046ccd5a178b2ed7f5dc72f4f /roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2
parentadd prometheus alert for host reboots (diff)
fix ubuntu post-install script and improve cleanup for noble
Diffstat (limited to 'roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2')
-rw-r--r--roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j23
1 files changed, 2 insertions, 1 deletions
diff --git a/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 b/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2
index af349e5c..612ba038 100644
--- a/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2
+++ b/roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2
@@ -225,6 +225,7 @@ autoinstall:
write_files:
- content: |
#!/bin/bash
+ set -e
for i in $(seq 10 -1 1); do echo "waiting $i seconds for cloud-init to finish."; sleep 1; done
echo "******************************************************************************"
echo "***** getting rid of cloud-init and other crap we neither want nor need! *****"
@@ -273,7 +274,7 @@ autoinstall:
- curtin in-target --target=/target -- apt-get -y -q purge systemd-oomd
{% endif %}
{% if (install_codename | ubuntu_release_compare('>=', 'noble')) %}
- - curtin in-target --target=/target -- apt-get -y -q purge ubuntu-kernel-accessories
+ - curtin in-target --target=/target -- apt-get -y -q purge ubuntu-kernel-accessories ubuntu-pro-client lxd-installer
{% endif %}
{% if ubuntu_autoinstall_desktop is undefined %}
- curtin in-target --target=/target -- apt-mark manual iputils-ping isc-dhcp-client netcat-openbsd netplan.io sudo