Skip to content

INFRA-804: document GRUB boot issue on RL9 #1343

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions doc/source/operations/upgrading-openstack.rst
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ Known issues
around this in custom config, see the SMS PR for an example:
https://github.com/stackhpc/smslab-kayobe-config/pull/354

* Due to a `security-related change in the GRUB package on Rocky Linux 9
<https://access.redhat.com/security/cve/CVE-2023-4001>`__, the operating
system can become unbootable (boot will stop at a ``grub>`` prompt). Remove
the ``--root-dev-only`` option from ``/boot/efi/EFI/rocky/grub.cfg`` after
applying package updates. This will happen automatically as a post hook when
running the ``kayobe overcloud host package update`` command.

Security baseline
=================

Expand Down Expand Up @@ -863,6 +870,15 @@ To update all eligible packages, use ``*``, escaping if necessary:

kayobe overcloud host package update --packages "*" --limit <host>

.. note::

Due to a `security-related change in the GRUB package on Rocky Linux 9
<https://access.redhat.com/security/cve/CVE-2023-4001>`__, the operating
system can become unbootable (boot will stop at a ``grub>`` prompt). Remove
the ``--root-dev-only`` option from ``/boot/efi/EFI/rocky/grub.cfg`` after
applying package updates. This will happen automatically as a post hook when
running the ``kayobe overcloud host package update`` command.

If the kernel has been upgraded, reboot the host or batch of hosts to pick up
the change:

Expand Down
15 changes: 15 additions & 0 deletions etc/kayobe/ansible/fix-grub-rl9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
- name: Remove "--root-dev-only" from grub.cfg if OS is Rocky Linux 9
hosts: overcloud
become: yes
gather_facts: true

tasks:
- name: Remove "--root-dev-only" from /boot/efi/EFI/rocky/grub.cfg
ansible.builtin.replace:
path: /boot/efi/EFI/rocky/grub.cfg
regexp: '--root-dev-only\s?'
replace: ''
when:
- ansible_facts['distribution'] == 'Rocky'
- ansible_facts['distribution_major_version'] == '9'