Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 413179

Summary: sys-boot/grub-1.99-r2 kernel sorting
Product: Gentoo Linux Reporter: Alex Brandt (RETIRED) <alunduil>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: minor    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Alex Brandt (RETIRED) gentoo-dev 2012-04-23 00:43:46 UTC
I'm not sure if this is something that should be fixed but when using GRUB-2 the newest installed kernel is not always created as entry 0 (corresponding with the /etc/default/grub DEFAULT option of 0).  One would expect that this automation would allow us to simply issue grub2-mkconfig and reboot to enter the new kernel but I wanted to pose the question here to find out if this is a valid expectation.

Reproducible: Always

Steps to Reproduce:
1.Install *-sources-3.2.2 (for example)
2.Update grub with these sources like normal (grub2-mkconfig)
3.Install *-sources-3.2.11 (for example)
4.Update grub with these sources like normal (grub2-mkconfig)
Actual Results:  
The kernel entries in the grub configuration (created by /etc/grub.d/10_linux) are 3.2.2 and then 3.2.11 not 3.2.11 and then 3.2.2 like one would expect (again I'm open to this being disputed).  With the default boot entry being zero the old kernel boots by default.

Expected Results:  
The kernels are in ascending age order in the grub menu and the newest kernel will take place zero in the menu configuration.
Comment 1 Mike Gilbert gentoo-dev 2012-04-23 01:09:28 UTC
Please indicate the full version of grub you are using. grub-2* is not useful.
Comment 2 Alex Brandt (RETIRED) gentoo-dev 2012-04-23 03:12:23 UTC
Just noticed I was testing on grub-1.99-r2.  I will verify if this still exists in the latest incarnation before continuing with this report.
Comment 3 Alex Brandt (RETIRED) gentoo-dev 2012-04-23 04:53:10 UTC
Sorry to have wasted time with this report.  Should've checked the latest release first.  It is working as I expected in sys-boot/grub-2.00_beta3-r1.  Marking as invalid since 1.99-r1 has been superseded by 2.00_beta3-r1.