From c392043eae285e638410ef562dc292a04f4a4083 Mon Sep 17 00:00:00 2001 From: Kristian Klausen <kristian@klausen.dk> Date: Sat, 25 Nov 2023 15:37:00 +0100 Subject: [PATCH] install_arch: Remove problematic ~/.bashrc which breaks mkinitcpio In the Hetzner rescue environment, they have begun setting TMPDIR=/tmp/hwc which breaks mkinitcpio, so remove the ~/.bashrc file so that is not set. --- roles/install_arch/tasks/main.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/roles/install_arch/tasks/main.yml b/roles/install_arch/tasks/main.yml index 5ddb9b9b0..0bfbd9c8c 100644 --- a/roles/install_arch/tasks/main.yml +++ b/roles/install_arch/tasks/main.yml @@ -10,6 +10,11 @@ - "'Rescue environment based on Alpine Linux' not in motd_contents.stdout" - "'OS Rescue Environment' not in motd_contents.stdout" +# It sources some files which sets TMPDIR=/tmp/hwc which breaks mkinitcpio +- name: Remove problematic ~/.bashrc + file: path=/root/.bashrc state=absent + when: "'Hetzner Rescue' in motd_contents.stdout" + - name: Prepare Equinix Metal rescue system when: ansible_facts['os_family'] == "Alpine" block: -- GitLab