Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 1738902 - [RFE] os-prober: load other linuxes grub (or just their config file) instead of guessing their correct boot settings
Summary: [RFE] os-prober: load other linuxes grub (or just their config file) instead ...
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: grub2
Version: 8.0
Hardware: Unspecified
OS: Unspecified
Target Milestone: rc
: 8.0
Assignee: Bootloader engineering team
QA Contact: Release Test Team
Depends On:
TreeView+ depends on / blocked
Reported: 2019-08-08 11:41 UTC by David Jaša
Modified: 2021-02-08 07:30 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2021-02-08 07:30:26 UTC
Type: Feature Request
Target Upstream Version:

Attachments (Terms of Use)

Description David Jaša 2019-08-08 11:41:06 UTC
Description of problem:
Grub does in EFI times what sort of made sense in BIOS times: it does its best guess at other Linux OS's boot parameters and generates boot entries for them. It's however fragile in two ways:
- it may guess the FS layout wrong
- when the other Linux updates kernel, the os-prober-generated entries break
Solution is simple, don't guess configuration, use the other OS's native one, no matter if by fully chainloading it grub, loading of its config or just importing its boot entries to a submenu

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. set up dual-boot of two linux systems (if two RHELs, you'll need two efi partitions to prevent /EFI/redhat/* conflicting files)
2. look at el8's bootloader

Actual results:
grub's /etc/grub.d/30_os-prober guesses correct boot entries for other Linux OSs

Expected results:
os-prober either chainloads other grubs just as it chainloads Windows loader or loads configuration of other grub (fully or just the entries as a submenu, this would be most polished option but not necessary IMO)

Additional info:

Comment 4 RHEL Program Management 2021-02-08 07:30:26 UTC
After evaluating this issue, there are no plans to address it further or fix it in an upcoming release.  Therefore, it is being closed.  If plans change such that this issue will be fixed in an upcoming release, then the bug can be reopened.

Note You need to log in before you can comment on or make changes to this bug.