diff options
author | Christian Pointner <equinox@spreadspace.org> | 2024-05-29 16:19:03 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2024-05-29 16:19:03 +0200 |
commit | 31c522535020901e65f6370c79df7e0be241e4fb (patch) | |
tree | 58e9b9e99749589046ccd5a178b2ed7f5dc72f4f | |
parent | add prometheus alert for host reboots (diff) |
fix ubuntu post-install script and improve cleanup for noble
-rw-r--r-- | roles/installer/ubuntu/autoinstall/templates/autoinstall.yml.j2 | 3 |
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 |