-
Notifications
You must be signed in to change notification settings - Fork 396
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
Add basic GRUB default boot entry support #2693
Conversation
3348316
to
71cd90d
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2693 +/- ##
==========================================
+ Coverage 72.45% 75.40% +2.94%
==========================================
Files 355 414 +59
Lines 37729 42116 +4387
==========================================
+ Hits 27337 31756 +4419
+ Misses 10392 10360 -32
☔ View full report in Codecov by Sentry. |
Signed-off-by: Shelly Chang <Shelly_Chang@wiwynn.com>
71cd90d
to
147226d
Compare
147226d
to
956a082
Compare
Add support for the default boot entry when GRUB_DEFAULT=saved and GRUB_ENABLE_BLSCFG=true in /etc/default/grub. For this case grub.cfg would generate the below line: set default="${saved_entry}" and grubenv would contain the value of ${saved_entry}, which will be compared and used as the default boot entry. Here it only handles specifically for this case. The default boot entry will be assigned with an incremented linux.BootRank, therefore it will be displayed from the top of the boot menu. Testing method: With CentOS 8, set GRUB_DEFAULT=saved and GRUB_ENABLE_BLSCFG=true in /etc/default/grub, and then run 'grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg'. Use 'grubby --set-default' to set the default boot option, run 'cat /boot/*/grubenv' to check the value after saved_entry is expected. After reboot, 'boot' command can see the default boot option displayed at the top of the boot menu. Signed-off-by: Shelly Chang <Shelly_Chang@wiwynn.com>
Signed-off-by: Shelly Chang <Shelly_Chang@wiwynn.com>
956a082
to
8ee4f6c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for your patience.
Thanks for your review Ron. |
No description provided.