Bug 1287876

Summary: RFE: teach grub2-mkconfig to optionally respect RPM install order
Product: [Fedora] Fedora Reporter: Andy Lutomirski <luto>
Component: grub2Assignee: Javier Martinez Canillas <fmartine>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: bcl, fmartine, jch, lkundrak, mads, mrmazda, pjones
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-06-10 12:30:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Andy Lutomirski 2015-12-02 22:00:47 UTC
Currently grub2-mkconfig (actually /etc/grub.d/10_linux AFAICT) adds boot entries in lexicographic order.  I personally like this, but some poeple don't.

For Fedora systems, it might be nice to have an option (in /etc/default/grub, presumably) to stick all the RPM-provided images either first or last and to sort them from most-recently-installed to least-recently-installed.

rpm -qf --queryformat='%{installdate}' could be used for this purpose.

Comment 1 Javier Martinez Canillas 2020-01-28 13:09:05 UTC
This is already the case with a BLS configuration, since the blscfg module sorts the entries using the same sorting algorithm that is used by RPM.

Comment 2 Fedora Admin user for bugzilla script actions 2021-05-07 00:36:08 UTC
This package has changed maintainer in Fedora. Reassigning to the new maintainer of this component.

Comment 3 Javier Martinez Canillas 2021-06-10 12:30:11 UTC
(In reply to Javier Martinez Canillas from comment #1)
> This is already the case with a BLS configuration, since the blscfg module
> sorts the entries using the same sorting algorithm that is used by RPM.

Closing since AFAICT this should already be the case now that the BLS configuration
is used by default. If there are any issues please feel free to file another bug.