From c5c77e83e72827695bd5cb37a9f4c7a34fb73e24 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 20 Nov 2020 03:18:24 +0100 Subject: add workaround for ubuntu grub efi/lvm boot disk recordfail problem --- roles/core/base/tasks/Debian.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'roles/core/base/tasks') diff --git a/roles/core/base/tasks/Debian.yml b/roles/core/base/tasks/Debian.yml index 8b64b741..14a30daa 100644 --- a/roles/core/base/tasks/Debian.yml +++ b/roles/core/base/tasks/Debian.yml @@ -115,6 +115,18 @@ line: 'GRUB_CMDLINE_LINUX="{{ install.kernel_cmdline | join(" ") }}"' notify: update grub + ## see https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/1814403 +- name: lower grub recordfail timeout for ubuntu/efi systems + when: + - ansible_distribution == "Ubuntu" + - install.efi | default(false) + lineinfile: + path: /etc/default/grub + regexp: '^#?GRUB_RECORDFAIL_TIMEOUT=' + line: 'GRUB_RECORDFAIL_TIMEOUT="3"' + insertafter: '^#?GRUB_TIMEOUT=' + notify: update grub + - name: apply stability fix/workaround for machines using intel NIC when: base_intel_nic_stability_fix import_tasks: intel-nic.yml -- cgit v1.2.3