Skip to content

sap_hana_preconfigure: Replace grub2-mkconfig for RHEL by grubby from RHEL 8 onward - #1083

Merged
berndfinger merged 11 commits into
sap-linuxlab:devfrom
berndfinger:issue-1081-grub2-mkconfig-command-line-args-rhel93
Jul 25, 2025
Merged

sap_hana_preconfigure: Replace grub2-mkconfig for RHEL by grubby from RHEL 8 onward#1083
berndfinger merged 11 commits into
sap-linuxlab:devfrom
berndfinger:issue-1081-grub2-mkconfig-command-line-args-rhel93

Conversation

@berndfinger

Copy link
Copy Markdown
Member

Fixes issue #1081. I used the opportunity to define the boot command line arguments in vars files and add the logic for loading vars files for RHEL to also support "greater than" operations for RHEL minor releases (so that the latest versions of a vars file is loaded even when using a higher minor RHEL version). I also cleaned up some vars files because each additional vars file entry will either replace an existing one or it will be appended to already loaded vars.

@marcelmamula SLES should not be affected. All handlers are left in place except those for RHEL which are no longer needed.

Solves sap-linuxlab#1081.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
Relates to sap-linuxlab#1081.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
Relates to sap-linuxlab#1081.

Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
- Only use dict contents for determining kernel command line
  dependencies for RHEL releases
- Set and display the grubby command line before calling the handler

Signed-off-by: Bernd Finger <bfinger@redhat.com>

@ja9fuchs ja9fuchs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

nice one with the "plus" files :)

@marcelmamula marcelmamula left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test done on SLES_SAP 16 and fewe comments are added.

TASK [community.sap_install.sap_hana_preconfigure : Include OS specific vars, specific] **************************************************
 [started TASK: community.sap_install.sap_hana_preconfigure : Include OS specific vars, specific on h02hana0]
skipping: [h02hana0] => (item=Suse.yml)
skipping: [h02hana0] => (item=SLES_SAP.yml)
skipping: [h02hana0] => (item=SLES_16.yml)
skipping: [h02hana0] => (item=SLES_16.0.yml)
ok: [h02hana0] => (item=SLES_SAP_16.yml)
skipping: [h02hana0] => (item=SLES_SAP_16.0.yml)

Comment thread roles/sap_hana_preconfigure/tasks/main.yml Outdated
Comment thread roles/sap_hana_preconfigure/tasks/main.yml Outdated
@berndfinger
berndfinger force-pushed the issue-1081-grub2-mkconfig-command-line-args-rhel93 branch from 0d290c0 to 0ccc97f Compare July 25, 2025 10:13
Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>
Signed-off-by: Bernd Finger <bfinger@redhat.com>

@marcelmamula marcelmamula left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you for correcting issues we found.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants