[Bug 2041827] [NEW] update-grub sorts custom kernel below older/lower package kernels

mrvanes 2041827 at bugs.launchpad.net
Mon Oct 30 10:48:05 UTC 2023


Public bug reported:

Since the upgrade to 23.10 my custom built kernels do not sort on top of
grub menu anymore, even though their number is higher than the packaged
kernels:

See the output of grub-sort-version -r for the default kernel list on my
system, as constructed by /etc/grub.d/10_linux

# for i in /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do echo $i; list="$list $i"; done
/boot/vmlinuz-6.5.0-10-generic
/boot/vmlinuz-6.5.0-9-generic
/boot/vmlinuz-6.5.8
/boot/vmlinuz-6.5.9
/boot/vmlinuz-6.6.0
/vmlinuz-*
/boot/kernel-*

# echo $list | tr ' ' '\n' | sed -e 's/\.old$/ 1/; / 1$/! s/$/ 2/' | /usr/lib/grub/grub-sort-version -r | sed -e 's/ 1$/.old/; s/ 2$//'
/vmlinuz-*
/boot/vmlinuz-6.5.0-10-generic
/boot/vmlinuz-6.5.0-9-generic
/boot/vmlinuz-6.6.0              <!--- Used to be on top before 23.10
/boot/vmlinuz-6.5.9
/boot/vmlinuz-6.5.8
/boot/kernel-*

As can be seen from the output, /boot/vmlinuz-6.5.0-10-generic sorts
above /boot/vmlinuz-6.6.0 which is a regression compared to 23.04

** Affects: grub2 (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grub2 in Ubuntu.
https://bugs.launchpad.net/bugs/2041827

Title:
  update-grub sorts custom kernel below older/lower package kernels

Status in grub2 package in Ubuntu:
  New

Bug description:
  Since the upgrade to 23.10 my custom built kernels do not sort on top
  of grub menu anymore, even though their number is higher than the
  packaged kernels:

  See the output of grub-sort-version -r for the default kernel list on
  my system, as constructed by /etc/grub.d/10_linux

  # for i in /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do echo $i; list="$list $i"; done
  /boot/vmlinuz-6.5.0-10-generic
  /boot/vmlinuz-6.5.0-9-generic
  /boot/vmlinuz-6.5.8
  /boot/vmlinuz-6.5.9
  /boot/vmlinuz-6.6.0
  /vmlinuz-*
  /boot/kernel-*

  # echo $list | tr ' ' '\n' | sed -e 's/\.old$/ 1/; / 1$/! s/$/ 2/' | /usr/lib/grub/grub-sort-version -r | sed -e 's/ 1$/.old/; s/ 2$//'
  /vmlinuz-*
  /boot/vmlinuz-6.5.0-10-generic
  /boot/vmlinuz-6.5.0-9-generic
  /boot/vmlinuz-6.6.0              <!--- Used to be on top before 23.10
  /boot/vmlinuz-6.5.9
  /boot/vmlinuz-6.5.8
  /boot/kernel-*

  As can be seen from the output, /boot/vmlinuz-6.5.0-10-generic sorts
  above /boot/vmlinuz-6.6.0 which is a regression compared to 23.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/2041827/+subscriptions




More information about the foundations-bugs mailing list