John Talbut wrote:
I have just done another kernel recompile and when I ran update-grub
it listed the previous version of the kernel first (thereby making it
the default kernel to boot).
I give my kernels a version according to the date on which I compiled
them, i.e.:
vmlinuz-2.6.21-11sep7
vmlinuz-2.6.21-18jul7
The second of these was listed first. Is this because update-grub
puts the kernels in descending order of version numbers, hence 18
comes higher up than 11, rather than, as I expected, by the date and
time when the file was modified.
Can someone give me a definitive answer, please?
The definitive answer can be found in /usr/sbin/update-grub : the
function CompareVersions is used for sorting the list of kernels. This
function considers the version numbers, not the file dates.
You may consider using a different naming scheme in the future, like
vmlinuz-2.6.21-20070911
vmlinuz-2.6.21-20070718
so that the alphabetic ordering of the version numbers matches the
temporal ordering.
--
Regards,
Hans.
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]