Package: grub-common
Version: 2.12-8
Severity: normal
Tags: patch upstream
Hey!
When there is a RC kernel, it is booted instead of the more recent
released one.
19:53 ❱ ls /boot/vmlinuz*
/boot/vmlinuz-6.15-amd64 /boot/vmlinuz-6.15-rc7-amd64
Attached a patch to fix this issue.
-- Package-specific info:
*********************** BEGIN /proc/mounts
/dev/mapper/fast-root / ext4 rw,noatime,stripe=32761 0 0
/dev/mapper/fast-tmp /tmp ext4 rw,nosuid,nodev,noatime 0 0
/dev/nvme0n1p1 /boot ext3 rw,nosuid,nodev,noatime 0 0
/dev/mapper/fast-var /var ext4 rw,nosuid,noatime 0 0
/dev/nvme0n1p2 /boot/efi vfat
rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro
0 0
/dev/mapper/fast-home /home ext4 rw,nosuid,nodev,noatime 0 0
/dev/mapper/fast-systems /var/lib/systems ext4 rw,noatime 0 0
/dev/mapper/fast-systems /nix ext4 rw,noatime 0 0
/dev/mapper/fast-systems /var/lib/docker ext4 rw,noatime 0 0
*********************** END /proc/mounts
*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="0"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
menuentry_id_option=""
fi
export menuentry_id_option
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function load_video {
if [ x$feature_all_video_module = xy ]; then
insmod all_video
else
insmod efi_gop
insmod efi_uga
insmod ieee1275_fb
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
fi
}
if [ x$feature_default_font_path = xy ] ; then
font=unicode
else
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root b750f133-5b5a-4da7-ba69-d23bb2ee2c2d
font="/grub/unicode.pf2"
fi
if loadfont $font ; then
set gfxmode=1920x1080
load_video
insmod gfxterm
set locale_dir=$prefix/locale
set lang=en_US
insmod gettext
fi
terminal_output gfxterm
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root b750f133-5b5a-4da7-ba69-d23bb2ee2c2d
insmod gfxmenu
loadfont ($root)/grub/themes/fallout/fixedsys-regular-32.pf2
insmod png
set theme=($root)/grub/themes/fallout/theme.txt
export theme
if [ "${recordfail}" = 1 ] ; then
set timeout=30
else
if [ x$feature_timeout_style = xy ] ; then
set timeout_style=menu
set timeout=5
# Fallback normal timeout code in case the timeout_style feature is
# unavailable.
else
set timeout=5
fi
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/10_linux ###
function gfxmode {
set gfxpayload="${1}"
}
set linux_gfx_mode=
export linux_gfx_mode
menuentry 'GNU/Linux' --class gnu-linux --class gnu --class os
$menuentry_id_option
'gnulinux-simple-d8366d4e-4bcd-4b19-89fb-7bfc53c7a2f4' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root
b750f133-5b5a-4da7-ba69-d23bb2ee2c2d
echo 'Loading Linux 6.15-rc7-amd64 ...'
linux /vmlinuz-6.15-rc7-amd64 root=/dev/mapper/fast-root ro splash
quiet echo 'Loading initial ramdisk ...'
initrd /initrd.img-6.15-rc7-amd64
}
submenu 'Advanced options for GNU/Linux' $menuentry_id_option
'gnulinux-advanced-d8366d4e-4bcd-4b19-89fb-7bfc53c7a2f4' {
menuentry 'GNU/Linux, with Linux 6.15-rc7-amd64' --class gnu-linux
--class gnu --class os $menuentry_id_option
'gnulinux-6.15-rc7-amd64-advanced-d8366d4e-4bcd-4b19-89fb-7bfc53c7a2f4' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio;
fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root
b750f133-5b5a-4da7-ba69-d23bb2ee2c2d
echo 'Loading Linux 6.15-rc7-amd64 ...'
linux /vmlinuz-6.15-rc7-amd64 root=/dev/mapper/fast-root ro splash
quiet echo 'Loading initial ramdisk ...'
initrd /initrd.img-6.15-rc7-amd64
}
menuentry 'GNU/Linux, with Linux 6.15-rc7-amd64 (recovery mode)'
--class gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-6.15-rc7-amd64-recovery-d8366d4e-4bcd-4b19-89fb-7bfc53c7a2f4' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio;
fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root
b750f133-5b5a-4da7-ba69-d23bb2ee2c2d
echo 'Loading Linux 6.15-rc7-amd64 ...'
linux /vmlinuz-6.15-rc7-amd64 root=/dev/mapper/fast-root ro single
dis_ucode_ldr splash quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-6.15-rc7-amd64
}
menuentry 'GNU/Linux, with Linux 6.15-amd64' --class gnu-linux --class
gnu --class os $menuentry_id_option
'gnulinux-6.15-amd64-advanced-d8366d4e-4bcd-4b19-89fb-7bfc53c7a2f4' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio;
fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root
b750f133-5b5a-4da7-ba69-d23bb2ee2c2d
echo 'Loading Linux 6.15-amd64 ...'
linux /vmlinuz-6.15-amd64 root=/dev/mapper/fast-root ro splash quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-6.15-amd64
}
menuentry 'GNU/Linux, with Linux 6.15-amd64 (recovery mode)' --class
gnu-linux --class gnu --class os $menuentry_id_option
'gnulinux-6.15-amd64-recovery-d8366d4e-4bcd-4b19-89fb-7bfc53c7a2f4' {
load_video
insmod gzio
if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio;
fi
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root
b750f133-5b5a-4da7-ba69-d23bb2ee2c2d
echo 'Loading Linux 6.15-amd64 ...'
linux /vmlinuz-6.15-amd64 root=/dev/mapper/fast-root ro single
dis_ucode_ldr splash quiet
echo 'Loading initial ramdisk ...'
initrd /initrd.img-6.15-amd64
}
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_ipxe ###
menuentry "Network boot (iPXE)" --users "" --class network --id ipxe {
insmod part_gpt
insmod ext2
search --no-floppy --fs-uuid --set=root
b750f133-5b5a-4da7-ba69-d23bb2ee2c2d
if [ "$grub_platform" = "efi" ]; then
chainloader /ipxe.efi
else
linux16 /ipxe.lkrn
# If the user provided an iPXE script, load it
if [ -f /ipxe.ipxe ]; then
initrd16 /ipxe.ipxe
fi
fi
}
### END /etc/grub.d/20_ipxe ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/25_bli ###
if [ "$grub_platform" = "efi" ]; then
insmod bli
fi
### END /etc/grub.d/25_bli ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
if [ "$grub_platform" = "efi" ]; then
fwsetup --is-supported
if [ "$?" = 0 ]; then
menuentry 'UEFI Firmware Settings' $menuentry_id_option
'uefi-firmware' {
fwsetup
}
fi
fi
### END /etc/grub.d/30_uefi-firmware ###
### BEGIN /etc/grub.d/35_fwupd ###
### END /etc/grub.d/35_fwupd ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply
type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f ${config_directory}/custom.cfg ]; then
source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg
fi
### END /etc/grub.d/41_custom ###
### BEGIN /etc/grub.d/42_grml ###
### END /etc/grub.d/42_grml ###
### BEGIN /etc/grub.d/60_grub-imageboot ###
### END /etc/grub.d/60_grub-imageboot ###
*********************** END /boot/grub/grub.cfg
*********************** BEGIN /proc/mdstat
Personalities : [raid0] [raid1] [raid4] [raid5] [raid6] [raid10] unused
devices: <none>
*********************** END /proc/mdstat
*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root 10 Jun 14 19:16 dm-name-fast-home -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 14 19:16 dm-name-fast-root -> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 14 19:16 dm-name-fast-swap -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 14 19:16 dm-name-fast-systems -> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 14 19:16 dm-name-fast-tmp -> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 14 19:16 dm-name-fast-var -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 14 19:16 dm-name-nvme -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 14 19:16
dm-uuid-CRYPT-LUKS2-825843e42bea49778569dee88d240ff6-nvme -> ../../dm-0
lrwxrwxrwx 1 root root 10 Jun 14 19:16
dm-uuid-LVM-SpzK75vTLEHt1m1AErbtqRxuVNHwiczm3wbjAwbdu5QRHtXW5UNUyQMd4xsqFZJd
-> ../../dm-1
lrwxrwxrwx 1 root root 10 Jun 14 19:16
dm-uuid-LVM-SpzK75vTLEHt1m1AErbtqRxuVNHwiczmCVmhnv1RRdUA0Dy6V3w79YRIEOJtOe6I
-> ../../dm-4
lrwxrwxrwx 1 root root 10 Jun 14 19:16
dm-uuid-LVM-SpzK75vTLEHt1m1AErbtqRxuVNHwiczmPRW0Xq5T8TDyhWMVf5eZGds4Q2xiL2tu
-> ../../dm-5
lrwxrwxrwx 1 root root 10 Jun 14 19:16
dm-uuid-LVM-SpzK75vTLEHt1m1AErbtqRxuVNHwiczmeU1QJfPNP9yYq22KzQubIiLkNKl88Ur5
-> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 14 19:16
dm-uuid-LVM-SpzK75vTLEHt1m1AErbtqRxuVNHwiczmizk9gWNpHnJqmkJLOAR4Ym7lc8nL2Z4R
-> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 14 19:16
dm-uuid-LVM-SpzK75vTLEHt1m1AErbtqRxuVNHwiczmuCfzNt2dR2sZ52G2AI7UVGO2tE2TF1tI
-> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 14 19:16
lvm-pv-uuid-2wHXcK-Zu0Y-O34A-KQNB-yYBj-y8SH-6wo4s1 -> ../../dm-0
lrwxrwxrwx 1 root root 13 Jun 14 19:15
nvme-Samsung_SSD_980_PRO_1TB_S5GXNS0RC13959Y -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Jun 14 19:15
nvme-Samsung_SSD_980_PRO_1TB_S5GXNS0RC13959Y-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Jun 14 19:15
nvme-Samsung_SSD_980_PRO_1TB_S5GXNS0RC13959Y-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Jun 14 19:15
nvme-Samsung_SSD_980_PRO_1TB_S5GXNS0RC13959Y-part3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 15 Jun 14 19:15
nvme-Samsung_SSD_980_PRO_1TB_S5GXNS0RC13959Y-part4 -> ../../nvme0n1p4
lrwxrwxrwx 1 root root 13 Jun 14 19:15
nvme-Samsung_SSD_980_PRO_1TB_S5GXNS0RC13959Y_1 -> ../../nvme0n1
lrwxrwxrwx 1 root root 15 Jun 14 19:15
nvme-Samsung_SSD_980_PRO_1TB_S5GXNS0RC13959Y_1-part1 -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Jun 14 19:15
nvme-Samsung_SSD_980_PRO_1TB_S5GXNS0RC13959Y_1-part2 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Jun 14 19:15
nvme-Samsung_SSD_980_PRO_1TB_S5GXNS0RC13959Y_1-part3 -> ../../nvme0n1p3
lrwxrwxrwx 1 root root 15 Jun 14 19:15
nvme-Samsung_SSD_980_PRO_1TB_S5GXNS0RC13959Y_1-part4 -> ../../nvme0n1p4
lrwxrwxrwx 1 root root 13 Jun 14 19:15 nvme-eui.002538bc11417771 ->
../../nvme0n1
lrwxrwxrwx 1 root root 15 Jun 14 19:15 nvme-eui.002538bc11417771-part1
-> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Jun 14 19:15 nvme-eui.002538bc11417771-part2
-> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Jun 14 19:15 nvme-eui.002538bc11417771-part3
-> ../../nvme0n1p3
lrwxrwxrwx 1 root root 15 Jun 14 19:15 nvme-eui.002538bc11417771-part4
-> ../../nvme0n1p4
*********************** END /dev/disk/by-id
*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Jun 14 19:16
2ad83bfa-9602-456d-a6ad-d5be848e9d08 -> ../../dm-6
lrwxrwxrwx 1 root root 10 Jun 14 19:16
63f4985e-1858-4160-a02f-15ff943c0e4c -> ../../dm-3
lrwxrwxrwx 1 root root 10 Jun 14 19:16
6b5bbea0-7bd2-4f4e-a885-3535556facfc -> ../../dm-5
lrwxrwxrwx 1 root root 15 Jun 14 19:15 7B35-F35C -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Jun 14 19:15
825843e4-2bea-4977-8569-dee88d240ff6 -> ../../nvme0n1p4
lrwxrwxrwx 1 root root 10 Jun 14 19:16
91d1f231-6ea3-4c83-b4bd-e6361630c450 -> ../../dm-4
lrwxrwxrwx 1 root root 15 Jun 14 19:15
b750f133-5b5a-4da7-ba69-d23bb2ee2c2d -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 10 Jun 14 19:16
c4395420-1efd-4bb1-8cbe-440f0d17d8d4 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Jun 14 19:16
d8366d4e-4bcd-4b19-89fb-7bfc53c7a2f4 -> ../../dm-1
*********************** END /dev/disk/by-uuid
-- System Information:
Debian Release: 13.0
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (500,
'testing'), (101, 'experimental-debug'), (101, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 6.15-rc7-amd64 (SMP w/12 CPU threads; PREEMPT)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8), LANGUAGE
not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages grub-common depends on:
ii gettext-base 0.23.1-2
ii libc6 2.41-8
ii libdevmapper1.02.1 2:1.02.205-2
ii libefiboot1t64 38-3.1+b1
ii libefivar1t64 38-3.1+b1
ii libfreetype6 2.13.3+dfsg-1
ii libfuse3-4 3.17.2-2
ii liblzma5 5.8.1-1
Versions of packages grub-common recommends:
ii os-prober 1.83
Versions of packages grub-common suggests:
ii console-setup 1.237
ii desktop-base 13.0.3
pn grub-emu <none>
ii mtools 4.0.48-1
pn multiboot-doc <none>
ii xorriso 1.5.6-1.2+b1
-- Configuration Files:
/etc/grub.d/05_debian_theme [file not found]
-- no debconf information
Index: grub2-2.12/util/grub.d/10_linux.in
===================================================================
--- grub2-2.12.orig/util/grub.d/10_linux.in
+++ grub2-2.12/util/grub.d/10_linux.in
@@ -293,8 +293,9 @@ submenu_indentation=""
# Temporarily replace the '.old' suffix by ' 1' and append ' 2' for all
# other files to order the '.old' files after their non-old counterpart
# in reverse-sorted order.
+# Turn "-rc" into "~rc" to ensure they are ordered correctly.
-reverse_sorted_list=$(echo $list | tr ' ' '\n' | sed -e 's/\.old$/ 1/; / 1$/! s/$/ 2/' | version_sort -r | sed -e 's/ 1$/.old/; s/ 2$//')
+reverse_sorted_list=$(echo $list | tr ' ' '\n' | sed -e 's/-rc\([1-9]\)-/~rc\1-/' | sed -e 's/\.old$/ 1/; / 1$/! s/$/ 2/' | version_sort -r | sed -e 's/ 1$/.old/; s/ 2$//')
if [ "x$GRUB_TOP_LEVEL" != x ]; then
reverse_sorted_list=$(grub_move_to_front "$GRUB_TOP_LEVEL" ${reverse_sorted_list})