summaryrefslogtreecommitdiff
path: root/roles/core/base
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-11-20 03:18:24 +0100
committerChristian Pointner <equinox@spreadspace.org>2020-11-20 03:18:24 +0100
commitc5c77e83e72827695bd5cb37a9f4c7a34fb73e24 (patch)
tree66e53cfb59cae63519fb18fe780861c4cc84069f /roles/core/base
parentthis shouldn't be necessary... since chunked uploads are a thing in nextcloud... (diff)
add workaround for ubuntu grub efi/lvm boot disk recordfail problem
Diffstat (limited to 'roles/core/base')
-rw-r--r--roles/core/base/tasks/Debian.yml12
1 files changed, 12 insertions, 0 deletions
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