pygrub not starting first menuentry in Fedora 30
There seems to be some changes in Fedora 30 that cause the second boot entry in grub.cfg to be booted instead of the first.
This means that Fedora 30 systems either always boot into an older kernel, or in the case of systems with only one kernel installed, the rescue image.
There also seems to be some new issues with the move to BLSCFG - however it seems a new requirement is to have GRUB_ENABLE_BLSCFG="false" in /etc/default/grub. This causes grub2-mkconfig to work correctly and spit out a grub.cfg file that pygrub can then use.
Is this a bug in pygrub, or a problem with how Fedora 30 generates a grub.cfg?
I tried to pick through pygrub - but couldn't quite follow the python logic to see where the default boot option is selected.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 14 lines · Steven Haigh
There seems to be some changes in Fedora 30 that cause the second boot entry in grub.cfg to be booted instead of the first.
This means that Fedora 30 systems either always boot into an older kernel, or in the case of systems with only one kernel installed, the rescue image.
There also seems to be some new issues with the move to BLSCFG - however it seems a new requirement is to have GRUB_ENABLE_BLSCFG="false" in
/etc/default/grub. This causes grub2-mkconfig to work correctly and spit out a grub.cfg file that pygrub can then use.
Quoted 5 lines
Is this a bug in pygrub, or a problem with how Fedora 30 generates a grub.cfg?
I tried to pick through pygrub - but couldn't quite follow the python logic to see where the default boot option is selected.
AFAICT, the basic issue is that pygrub is a partial re-implementation of grub, and hasn't re-implemented the blscfg functionality.
The *most robust* solution going forward is always going to be to use grub-xen (AKA pvgrub2) instead of pygrub. grub-xen is a port of the actual grub project to run as a PV guest, and so will always be the most compatible with upstream grub.
Not sure who's "in charge" of pygrub enough to teach it how to use blscfg.
-George
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 20 lines · George Dunlap
Quoted 19 lines · Steven Haigh
There seems to be some changes in Fedora 30 that cause the second
boot
entry in grub.cfg to be booted instead of the first.This means that Fedora 30 systems either always boot into an older kernel, or in the case of systems with only one kernel installed,
the
rescue image.There also seems to be some new issues with the move to BLSCFG - however it seems a new requirement is to have GRUB_ENABLE_BLSCFG="false" in
/etc/default/grub. This causes grub2-mkconfig to work correctly and spit out a grub.cfg file that pygrub can then use.Is this a bug in pygrub, or a problem with how Fedora 30 generates a grub.cfg?
Quoted 6 lines
Quoted 3 lines
I tried to pick through pygrub - but couldn't quite follow the
python
logic to see where the default boot option is selected.AFAICT, the basic issue is that pygrub is a partial re-implementation of grub, and hasn't re-implemented the blscfg functionality.
I don't think this is an issue. When using 'GRUB_ENABLE_BLSCFG=false' in /etc/default/grub, the grub config file is generated correctly and works as expected. The problem is not that it doesn't work, but something is causing an offset in the default menu item (almost like an off-by-one) that causes the *second* entry in the grub.cfg to boot.
Quoted 6 lines
The *most robust* solution going forward is always going to be to use grub-xen (AKA pvgrub2) instead of pygrub. grub-xen is a port of the actual grub project to run as a PV guest, and so will always be the most compatible with upstream grub.
Not sure who's "in charge" of pygrub enough to teach it how to use blscfg.
I'm not sure there's a huge rush for this... If upstream grub installers checked to see if it was installing on a Xen DomU, then set GRUB_ENABLE_BLSCFG=false by default - the remaining fix should be rather simple to figure out - after all, functionality is correct - apart from the wrong entry being selected by default.
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel