Package: grub-common Version: 2.04-5 Severity: normal File: /usr/sbin/grub-mkconfig
I have two distros on my machine Debian and Fedora. If the Debian-version of Grub is installed, then update-grub finds all kernels on both partitions, but in the case of Fedora, it lists the kernels in wrong order, putting the recovery option first, then the oldest kernel, followed by the newest kernel. The Fedora version of grub doesn't do this, it will list kernels belong to Fedora and Debian in proper order. In both cases, grub is installed to the root of /dev/sda , Debian is in /dev/sda5, Fedora is in /dev/sda6 -- Package-specific info: *********************** BEGIN /proc/mounts /dev/sda5 / ext4 rw,relatime,errors=remount-ro 0 0 /dev/sdb2 /media/sdb2/ff0439db-752b-4958-affc-d1827301a536 ext4 rw,relatime 0 0 /dev/sdb1 /media/sdb2/d8088c90-b24c-483d-8865-4fdf6ac2b6a8 ext4 rw,relatime,stripe=32674 0 0 /dev/sda6 /media/fedora ext4 rw,relatime 0 0 *********************** END /proc/mounts *********************** BEGIN /boot/grub/device.map (hd0) /dev/sda (hd1) /dev/sdb *********************** END /boot/grub/device.map *********************** 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_msdos insmod ext2 set root='hd0,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' 9b4d766e-de76-49fc-9af2-c4fbf52b2c4a else search --no-floppy --fs-uuid --set=root 9b4d766e-de76-49fc-9af2-c4fbf52b2c4a fi font="/usr/share/grub/unicode.pf2" fi if loadfont $font ; then set gfxmode=auto load_video insmod gfxterm set locale_dir=$prefix/locale set lang=en_US insmod gettext fi terminal_output gfxterm if [ "${recordfail}" = 1 ] ; then set timeout=30 else if [ x$feature_timeout_style = xy ] ; then set timeout_style=menu set timeout=10 # Fallback normal timeout code in case the timeout_style feature is # unavailable. else set timeout=10 fi fi ### END /etc/grub.d/00_header ### ### BEGIN /etc/grub.d/05_debian_theme ### insmod part_msdos insmod ext2 set root='hd0,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' 9b4d766e-de76-49fc-9af2-c4fbf52b2c4a else search --no-floppy --fs-uuid --set=root 9b4d766e-de76-49fc-9af2-c4fbf52b2c4a fi insmod png if background_image /usr/share/desktop-base/futureprototype-theme/grub/grub-16x9.png; then set color_normal=white/black set color_highlight=black/white else set menu_color_normal=cyan/blue set menu_color_highlight=white/blue fi ### END /etc/grub.d/05_debian_theme ### ### BEGIN /etc/grub.d/10_linux ### function gfxmode { set gfxpayload="${1}" } set linux_gfx_mode= export linux_gfx_mode menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-9b4d766e-de76-49fc-9af2-c4fbf52b2c4a' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' 9b4d766e-de76-49fc-9af2-c4fbf52b2c4a else search --no-floppy --fs-uuid --set=root 9b4d766e-de76-49fc-9af2-c4fbf52b2c4a fi echo 'Loading Linux 5.4.0-1-amd64 ...' linux /boot/vmlinuz-5.4.0-1-amd64 root=UUID=9b4d766e-de76-49fc-9af2-c4fbf52b2c4a ro apparmor=0 echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-5.4.0-1-amd64 } submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-9b4d766e-de76-49fc-9af2-c4fbf52b2c4a' { menuentry 'Debian GNU/Linux, with Linux 5.4.0-1-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-1-amd64-advanced-9b4d766e-de76-49fc-9af2-c4fbf52b2c4a' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' 9b4d766e-de76-49fc-9af2-c4fbf52b2c4a else search --no-floppy --fs-uuid --set=root 9b4d766e-de76-49fc-9af2-c4fbf52b2c4a fi echo 'Loading Linux 5.4.0-1-amd64 ...' linux /boot/vmlinuz-5.4.0-1-amd64 root=UUID=9b4d766e-de76-49fc-9af2-c4fbf52b2c4a ro apparmor=0 echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-5.4.0-1-amd64 } menuentry 'Debian GNU/Linux, with Linux 5.4.0-1-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.4.0-1-amd64-recovery-9b4d766e-de76-49fc-9af2-c4fbf52b2c4a' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' 9b4d766e-de76-49fc-9af2-c4fbf52b2c4a else search --no-floppy --fs-uuid --set=root 9b4d766e-de76-49fc-9af2-c4fbf52b2c4a fi echo 'Loading Linux 5.4.0-1-amd64 ...' linux /boot/vmlinuz-5.4.0-1-amd64 root=UUID=9b4d766e-de76-49fc-9af2-c4fbf52b2c4a ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-5.4.0-1-amd64 } menuentry 'Debian GNU/Linux, with Linux 5.3.0-3-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-3-amd64-advanced-9b4d766e-de76-49fc-9af2-c4fbf52b2c4a' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' 9b4d766e-de76-49fc-9af2-c4fbf52b2c4a else search --no-floppy --fs-uuid --set=root 9b4d766e-de76-49fc-9af2-c4fbf52b2c4a fi echo 'Loading Linux 5.3.0-3-amd64 ...' linux /boot/vmlinuz-5.3.0-3-amd64 root=UUID=9b4d766e-de76-49fc-9af2-c4fbf52b2c4a ro apparmor=0 echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-5.3.0-3-amd64 } menuentry 'Debian GNU/Linux, with Linux 5.3.0-3-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.3.0-3-amd64-recovery-9b4d766e-de76-49fc-9af2-c4fbf52b2c4a' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod ext2 set root='hd0,msdos5' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' 9b4d766e-de76-49fc-9af2-c4fbf52b2c4a else search --no-floppy --fs-uuid --set=root 9b4d766e-de76-49fc-9af2-c4fbf52b2c4a fi echo 'Loading Linux 5.3.0-3-amd64 ...' linux /boot/vmlinuz-5.3.0-3-amd64 root=UUID=9b4d766e-de76-49fc-9af2-c4fbf52b2c4a ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-5.3.0-3-amd64 } } ### END /etc/grub.d/10_linux ### ### BEGIN /etc/grub.d/20_linux_xen ### ### END /etc/grub.d/20_linux_xen ### ### BEGIN /etc/grub.d/30_os-prober ### menuentry 'Windows 10 (on /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-6C8C4DA68C4D6BA0' { insmod part_msdos insmod ntfs set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 --hint='hd0,msdos1' 6C8C4DA68C4D6BA0 else search --no-floppy --fs-uuid --set=root 6C8C4DA68C4D6BA0 fi parttool ${root} hidden- drivemap -s (hd0) ${root} chainloader +1 } menuentry 'Fedora 31 (Thirty One) (on /dev/sda6)' --class fedora --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-d32f7512-94de-411f-997e-0f379aeee076' { insmod part_msdos insmod ext2 set root='hd0,msdos6' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6' d32f7512-94de-411f-997e-0f379aeee076 else search --no-floppy --fs-uuid --set=root d32f7512-94de-411f-997e-0f379aeee076 fi linux /boot/vmlinuz-0-rescue-c86e4bf506c94215a916ec2c699b1fda root=/dev/sda6 initrd /boot/initramfs-0-rescue-c86e4bf506c94215a916ec2c699b1fda.img } submenu 'Advanced options for Fedora 31 (Thirty One) (on /dev/sda6)' $menuentry_id_option 'osprober-gnulinux-advanced-d32f7512-94de-411f-997e-0f379aeee076' { menuentry 'Fedora 31 (Thirty One) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-0-rescue-c86e4bf506c94215a916ec2c699b1fda--d32f7512-94de-411f-997e-0f379aeee076' { insmod part_msdos insmod ext2 set root='hd0,msdos6' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6' d32f7512-94de-411f-997e-0f379aeee076 else search --no-floppy --fs-uuid --set=root d32f7512-94de-411f-997e-0f379aeee076 fi linux /boot/vmlinuz-0-rescue-c86e4bf506c94215a916ec2c699b1fda root=/dev/sda6 initrd /boot/initramfs-0-rescue-c86e4bf506c94215a916ec2c699b1fda.img } menuentry 'Fedora 31 (Thirty One) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.3.15-300.fc31.x86_64--d32f7512-94de-411f-997e-0f379aeee076' { insmod part_msdos insmod ext2 set root='hd0,msdos6' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6' d32f7512-94de-411f-997e-0f379aeee076 else search --no-floppy --fs-uuid --set=root d32f7512-94de-411f-997e-0f379aeee076 fi linux /boot/vmlinuz-5.3.15-300.fc31.x86_64 root=/dev/sda6 initrd /boot/initramfs-5.3.15-300.fc31.x86_64.img } menuentry 'Fedora 31 (Thirty One) (on /dev/sda6)' --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-/boot/vmlinuz-5.3.16-300.fc31.x86_64--d32f7512-94de-411f-997e-0f379aeee076' { insmod part_msdos insmod ext2 set root='hd0,msdos6' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos6 --hint-efi=hd0,msdos6 --hint-baremetal=ahci0,msdos6 --hint='hd0,msdos6' d32f7512-94de-411f-997e-0f379aeee076 else search --no-floppy --fs-uuid --set=root d32f7512-94de-411f-997e-0f379aeee076 fi linux /boot/vmlinuz-5.3.16-300.fc31.x86_64 root=/dev/sda6 initrd /boot/initramfs-5.3.16-300.fc31.x86_64.img } } ### END /etc/grub.d/30_os-prober ### ### BEGIN /etc/grub.d/30_uefi-firmware ### ### END /etc/grub.d/30_uefi-firmware ### ### 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 ### *********************** END /boot/grub/grub.cfg *********************** BEGIN /proc/mdstat Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] unused devices: <none> *********************** END /proc/mdstat *********************** BEGIN /dev/disk/by-id total 0 lrwxrwxrwx 1 root root 9 Dec 29 10:25 ata-HITACHI_HUA721050KLA330_P6GUR5YF -> ../../sda lrwxrwxrwx 1 root root 10 Dec 29 10:26 ata-HITACHI_HUA721050KLA330_P6GUR5YF-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Dec 29 10:26 ata-HITACHI_HUA721050KLA330_P6GUR5YF-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Dec 29 10:25 ata-HITACHI_HUA721050KLA330_P6GUR5YF-part3 -> ../../sda3 lrwxrwxrwx 1 root root 10 Dec 29 10:25 ata-HITACHI_HUA721050KLA330_P6GUR5YF-part4 -> ../../sda4 lrwxrwxrwx 1 root root 10 Dec 29 10:25 ata-HITACHI_HUA721050KLA330_P6GUR5YF-part5 -> ../../sda5 lrwxrwxrwx 1 root root 10 Dec 29 10:25 ata-HITACHI_HUA721050KLA330_P6GUR5YF-part6 -> ../../sda6 lrwxrwxrwx 1 root root 10 Dec 29 10:26 ata-HITACHI_HUA721050KLA330_P6GUR5YF-part7 -> ../../sda7 lrwxrwxrwx 1 root root 9 Dec 29 10:25 ata-HL-DT-STDVD-RAM_GH60N_M02A63A5424 -> ../../sr0 lrwxrwxrwx 1 root root 9 Dec 29 10:26 ata-ST3500418AS_9VMLVWR7 -> ../../sdb lrwxrwxrwx 1 root root 10 Dec 29 10:26 ata-ST3500418AS_9VMLVWR7-part1 -> ../../sdb1 lrwxrwxrwx 1 root root 10 Dec 29 10:26 ata-ST3500418AS_9VMLVWR7-part2 -> ../../sdb2 lrwxrwxrwx 1 root root 9 Dec 29 10:26 wwn-0x5000c500271325b1 -> ../../sdb lrwxrwxrwx 1 root root 10 Dec 29 10:26 wwn-0x5000c500271325b1-part1 -> ../../sdb1 lrwxrwxrwx 1 root root 10 Dec 29 10:26 wwn-0x5000c500271325b1-part2 -> ../../sdb2 lrwxrwxrwx 1 root root 9 Dec 29 10:25 wwn-0x5000cca214cbb095 -> ../../sda lrwxrwxrwx 1 root root 10 Dec 29 10:26 wwn-0x5000cca214cbb095-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Dec 29 10:26 wwn-0x5000cca214cbb095-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Dec 29 10:25 wwn-0x5000cca214cbb095-part3 -> ../../sda3 lrwxrwxrwx 1 root root 10 Dec 29 10:25 wwn-0x5000cca214cbb095-part4 -> ../../sda4 lrwxrwxrwx 1 root root 10 Dec 29 10:25 wwn-0x5000cca214cbb095-part5 -> ../../sda5 lrwxrwxrwx 1 root root 10 Dec 29 10:25 wwn-0x5000cca214cbb095-part6 -> ../../sda6 lrwxrwxrwx 1 root root 10 Dec 29 10:26 wwn-0x5000cca214cbb095-part7 -> ../../sda7 *********************** END /dev/disk/by-id *********************** BEGIN /dev/disk/by-uuid total 0 lrwxrwxrwx 1 root root 10 Dec 29 10:25 18DAA42BDAA406DA -> ../../sda3 lrwxrwxrwx 1 root root 10 Dec 29 10:26 6C8C4DA68C4D6BA0 -> ../../sda1 lrwxrwxrwx 1 root root 10 Dec 29 10:25 9b4d766e-de76-49fc-9af2-c4fbf52b2c4a -> ../../sda5 lrwxrwxrwx 1 root root 10 Dec 29 10:26 DADC6D7CDC6D5433 -> ../../sda2 lrwxrwxrwx 1 root root 10 Dec 29 10:25 d32f7512-94de-411f-997e-0f379aeee076 -> ../../sda6 lrwxrwxrwx 1 root root 10 Dec 29 10:26 d8088c90-b24c-483d-8865-4fdf6ac2b6a8 -> ../../sdb1 lrwxrwxrwx 1 root root 10 Dec 29 10:26 eaed7f3b-725f-493f-8a55-da148e54ed95 -> ../../sda7 lrwxrwxrwx 1 root root 10 Dec 29 10:26 ff0439db-752b-4958-affc-d1827301a536 -> ../../sdb2 *********************** END /dev/disk/by-uuid -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 5.4.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages grub-common depends on: ii gettext-base 0.19.8.1-10 ii libc6 2.29-6 ii libdevmapper1.02.1 2:1.02.155-3 ii libefiboot1 37-2 ii libefivar1 37-2 ii libfreetype6 2.10.1-2 ii libfuse2 2.9.9-2 ii liblzma5 5.2.4-1+b1 Versions of packages grub-common recommends: ii os-prober 1.77 Versions of packages grub-common suggests: ii console-setup 1.194 ii desktop-base 10.0.3 pn grub-emu <none> pn multiboot-doc <none> pn xorriso <none> -- no debconf information