From 0a9f24f6f5be1e5cc380e7f183de3164b3e051ee Mon Sep 17 00:00:00 2001 From: bmaupin Date: Thu, 3 Feb 2022 08:29:28 -0500 Subject: [PATCH] home-desktop: Enable grub menu with 5 second timeout --- roles/home-desktop/tasks/main.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/roles/home-desktop/tasks/main.yml b/roles/home-desktop/tasks/main.yml index c93dc7b..0d2b44a 100644 --- a/roles/home-desktop/tasks/main.yml +++ b/roles/home-desktop/tasks/main.yml @@ -41,3 +41,18 @@ become: yes notify: Update grub tags: [home-desktop] + +# This allows us to boot to an older kernel if the rtl8812bu kernel module isn't working +- name: Enable grub menu with 5 second timeout + lineinfile: + path: /etc/default/grub + regexp: '{{ item.regexp }}' + line: '{{ item.line }}' + loop: + # Default value is hidden + - { regexp: '^GRUB_TIMEOUT_STYLE', line: 'GRUB_TIMEOUT_STYLE=menu' } + # Default value is 0 + - { regexp: '^GRUB_TIMEOUT', line: 'GRUB_TIMEOUT=5' } + become: yes + notify: Update grub + tags: [home-desktop]