Skip to content
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

fix: Modify grub timeout in grub config directly #86

Merged
merged 3 commits into from
Feb 8, 2024

Conversation

spetrosi
Copy link
Contributor

@spetrosi spetrosi commented Feb 8, 2024

Enhancement: Modify grub timeout in grub config directly

Reason: On RHEL 7, rebuilding grub config with grubby2-mkconfig has a bug that returns previously removed kernels

Result: This workaround doesn't require rebuilding grub config and hence avoids the bug

@spetrosi spetrosi requested a review from richm as a code owner February 8, 2024 16:21
@spetrosi
Copy link
Contributor Author

spetrosi commented Feb 8, 2024

[citest]

regexp: '^GRUB_TIMEOUT=.*'
replace: 'GRUB_TIMEOUT={{ bootloader_timeout }}'
mode: "{{ __bootloader_grub_stat.stat.exists |
ternary(__bootloader_grub_stat.stat.mode, '0644') }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

Does one apply to the current kernel, and the other applies to new kernels?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is general, not applied to any kernel but to the system generally. This timeout happens before you use any kernel, actually.

@spetrosi
Copy link
Contributor Author

spetrosi commented Feb 8, 2024

[citest]

Copy link

codecov bot commented Feb 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (92ec6d6) 0.00% compared to head (e81cb99) 78.43%.

Additional details and impacted files
@@            Coverage Diff            @@
##           main      #86       +/-   ##
=========================================
+ Coverage      0   78.43%   +78.43%     
=========================================
  Files         0        2        +2     
  Lines         0      255      +255     
=========================================
+ Hits          0      200      +200     
- Misses        0       55       +55     
Flag Coverage Δ
sanity ∅ <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@spetrosi spetrosi merged commit 8bc22c8 into linux-system-roles:main Feb 8, 2024
29 of 30 checks passed
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.

2 participants