Package: grub-pc Version: 2.04-20 Severity: normal Dear Maintainer,
I am seeing the double chain loading of the old grub legacy which successfully loads the modern grub. Evidently, I forgot to run upgrade-from-grub-legacy on some systems 10 years ago. Or maybe it failed to work 10 years ago and I'm only now noticing (since I've had to do a lot of reboots to fix other things that broke in Bullseye). On two systems I tried to run upgrade-from-grub-legacy in Bullseye. The program appears to run, but the double chain loading of the old grub continues. I infer that it did not work. If the program cannot be run any more, then it should be removed from the package. If a solution can be offered to those of us who didn't pay close enough attention to an upgrade 8 years ago, then, perhaps, the program can be fixed. Here are the run-time messages from upgrade-from-grub-legacy: $ sudo upgrade-from-grub-legacy core.img doesn't exist, trying to create it. Installing for i386-pc platform. Installation finished. No error reported. dpkg: warning: version 'dummy-version' has bad syntax: version number does not start with digit Configuring grub-pc ------------------- The grub-pc package is being upgraded. This menu allows you to select which devices you'd like grub-install to be automatically run for, if any. Running grub-install automatically is recommended in most situations, to prevent the installed GRUB core image from getting out of sync with GRUB modules or grub.cfg. If you're unsure which drive is designated as boot drive by your BIOS, it is often a good idea to install GRUB to all of them. Note: it is possible to install GRUB to partition boot records as well, and some appropriate partitions are offered here. However, this forces GRUB to use the blocklist mechanism, which makes it less reliable, and therefore is not recommended. 1. /dev/md0 (1995264 MB; precession:0) 3. /dev/sdb (2000398 MB; ST2000DM008-2FR102) 2. /dev/sda (2000398 MB; WDC_WD2002FAEX-00MJRA0) 4. /dev/dm-0 (74998 MB; precession-root) (Enter the items or ranges you want to select, separated by spaces.) GRUB install devices: 2 3 Installing for i386-pc platform. File descriptor 3 (pipe:[239103]) leaked on vgs invocation. Parent PID 66419: grub-install File descriptor 3 (pipe:[239103]) leaked on vgs invocation. Parent PID 66419: grub-install File descriptor 3 (pipe:[239103]) leaked on vgs invocation. Parent PID 66419: grub-install Installation finished. No error reported. Installing for i386-pc platform. File descriptor 3 (pipe:[239103]) leaked on vgs invocation. Parent PID 66455: grub-install File descriptor 3 (pipe:[239103]) leaked on vgs invocation. Parent PID 66455: grub-install File descriptor 3 (pipe:[239103]) leaked on vgs invocation. Parent PID 66455: grub-install Installation finished. No error reported. Generating grub configuration file ... Found linux image: /boot/vmlinuz-5.10.0-10-amd64 Found initrd image: /boot/initrd.img-5.10.0-10-amd64 Found linux image: /boot/vmlinuz-4.19.0-18-amd64 Found initrd image: /boot/initrd.img-4.19.0-18-amd64 done GRUB Legacy has been removed, but its configuration files have been preserved, since this script cannot determine if they contain valuable information. If you would like to remove the configuration files as well, use the following command: rm -f /boot/grub/menu.lst* But after I reboot I continue to see the old GRUB with fd0 errors before the new modern grub successfully works. The other system I tried this on had the same behavior: I still get the old GRUB legacy splash screen before the new grub chain loads and successfully boots the system. *** End of the template - remove these template lines *** -- Package-specific info: *********************** BEGIN /proc/mounts /dev/mapper/precession-root / ext4 rw,relatime,errors=remount-ro 0 0 /dev/mapper/precession-tmp /tmp ext2 rw,relatime 0 0 /dev/mapper/precession-var /var ext4 rw,relatime 0 0 /dev/mapper/precession-home /home ext4 rw,relatime 0 0 /dev/mapper/precession-storage2013 /storage ext4 rw,relatime,stripe=32751 0 0 *********************** END /proc/mounts *********************** BEGIN /boot/grub/device.map (hd0) /dev/disk/by-id/ata-WDC_WD2002FAEX-00MJRA0_WD-WCC1P1012992 (hd1) /dev/disk/by-id/ata-WDC_WD2002FAEX-00MJRA0_WD-WCC1P0987331 (hd2) /dev/disk/by-id/usb-SanDisk_Cruzer_20035001811619024B88-0:0 *********************** 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 part_msdos insmod diskfilter insmod mdraid1x insmod lvm insmod ext2 set root='lvmid/SYKWdy-def2-kZEk-rhCL-x30d-5pHT-qkIIVg/3MuE9U-TTyq-Y6Of-cVjJ-l0Sd-7M4q-E6WmI1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='lvmid/SYKWdy-def2-kZEk-rhCL-x30d-5pHT-qkIIVg/3MuE9U-TTyq-Y6Of-cVjJ-l0Sd-7M4q-E6WmI1' 7ad62dbe-f31f-4d28-9915-2367145f6971 else search --no-floppy --fs-uuid --set=root 7ad62dbe-f31f-4d28-9915-2367145f6971 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=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/05_debian_theme ### set menu_color_normal=cyan/blue set menu_color_highlight=white/blue ### 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-7ad62dbe-f31f-4d28-9915-2367145f6971' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod part_msdos insmod diskfilter insmod mdraid1x insmod lvm insmod ext2 set root='lvmid/SYKWdy-def2-kZEk-rhCL-x30d-5pHT-qkIIVg/3MuE9U-TTyq-Y6Of-cVjJ-l0Sd-7M4q-E6WmI1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='lvmid/SYKWdy-def2-kZEk-rhCL-x30d-5pHT-qkIIVg/3MuE9U-TTyq-Y6Of-cVjJ-l0Sd-7M4q-E6WmI1' 7ad62dbe-f31f-4d28-9915-2367145f6971 else search --no-floppy --fs-uuid --set=root 7ad62dbe-f31f-4d28-9915-2367145f6971 fi echo 'Loading Linux 5.10.0-10-amd64 ...' linux /boot/vmlinuz-5.10.0-10-amd64 root=/dev/mapper/precession-root ro quiet pcie_aspm=force intel_idle.max_cstate=1 i915.disable_power_well=1 i915.enable_dc=0 echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-5.10.0-10-amd64 } submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-7ad62dbe-f31f-4d28-9915-2367145f6971' { menuentry 'Debian GNU/Linux, with Linux 5.10.0-10-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-10-amd64-advanced-7ad62dbe-f31f-4d28-9915-2367145f6971' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod part_msdos insmod diskfilter insmod mdraid1x insmod lvm insmod ext2 set root='lvmid/SYKWdy-def2-kZEk-rhCL-x30d-5pHT-qkIIVg/3MuE9U-TTyq-Y6Of-cVjJ-l0Sd-7M4q-E6WmI1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='lvmid/SYKWdy-def2-kZEk-rhCL-x30d-5pHT-qkIIVg/3MuE9U-TTyq-Y6Of-cVjJ-l0Sd-7M4q-E6WmI1' 7ad62dbe-f31f-4d28-9915-2367145f6971 else search --no-floppy --fs-uuid --set=root 7ad62dbe-f31f-4d28-9915-2367145f6971 fi echo 'Loading Linux 5.10.0-10-amd64 ...' linux /boot/vmlinuz-5.10.0-10-amd64 root=/dev/mapper/precession-root ro quiet pcie_aspm=force intel_idle.max_cstate=1 i915.disable_power_well=1 i915.enable_dc=0 echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-5.10.0-10-amd64 } menuentry 'Debian GNU/Linux, with Linux 5.10.0-10-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-5.10.0-10-amd64-recovery-7ad62dbe-f31f-4d28-9915-2367145f6971' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod part_msdos insmod diskfilter insmod mdraid1x insmod lvm insmod ext2 set root='lvmid/SYKWdy-def2-kZEk-rhCL-x30d-5pHT-qkIIVg/3MuE9U-TTyq-Y6Of-cVjJ-l0Sd-7M4q-E6WmI1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='lvmid/SYKWdy-def2-kZEk-rhCL-x30d-5pHT-qkIIVg/3MuE9U-TTyq-Y6Of-cVjJ-l0Sd-7M4q-E6WmI1' 7ad62dbe-f31f-4d28-9915-2367145f6971 else search --no-floppy --fs-uuid --set=root 7ad62dbe-f31f-4d28-9915-2367145f6971 fi echo 'Loading Linux 5.10.0-10-amd64 ...' linux /boot/vmlinuz-5.10.0-10-amd64 root=/dev/mapper/precession-root ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-5.10.0-10-amd64 } menuentry 'Debian GNU/Linux, with Linux 4.19.0-18-amd64' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-18-amd64-advanced-7ad62dbe-f31f-4d28-9915-2367145f6971' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod part_msdos insmod diskfilter insmod mdraid1x insmod lvm insmod ext2 set root='lvmid/SYKWdy-def2-kZEk-rhCL-x30d-5pHT-qkIIVg/3MuE9U-TTyq-Y6Of-cVjJ-l0Sd-7M4q-E6WmI1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='lvmid/SYKWdy-def2-kZEk-rhCL-x30d-5pHT-qkIIVg/3MuE9U-TTyq-Y6Of-cVjJ-l0Sd-7M4q-E6WmI1' 7ad62dbe-f31f-4d28-9915-2367145f6971 else search --no-floppy --fs-uuid --set=root 7ad62dbe-f31f-4d28-9915-2367145f6971 fi echo 'Loading Linux 4.19.0-18-amd64 ...' linux /boot/vmlinuz-4.19.0-18-amd64 root=/dev/mapper/precession-root ro quiet pcie_aspm=force intel_idle.max_cstate=1 i915.disable_power_well=1 i915.enable_dc=0 echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-4.19.0-18-amd64 } menuentry 'Debian GNU/Linux, with Linux 4.19.0-18-amd64 (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-4.19.0-18-amd64-recovery-7ad62dbe-f31f-4d28-9915-2367145f6971' { load_video insmod gzio if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi insmod part_msdos insmod part_msdos insmod diskfilter insmod mdraid1x insmod lvm insmod ext2 set root='lvmid/SYKWdy-def2-kZEk-rhCL-x30d-5pHT-qkIIVg/3MuE9U-TTyq-Y6Of-cVjJ-l0Sd-7M4q-E6WmI1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint='lvmid/SYKWdy-def2-kZEk-rhCL-x30d-5pHT-qkIIVg/3MuE9U-TTyq-Y6Of-cVjJ-l0Sd-7M4q-E6WmI1' 7ad62dbe-f31f-4d28-9915-2367145f6971 else search --no-floppy --fs-uuid --set=root 7ad62dbe-f31f-4d28-9915-2367145f6971 fi echo 'Loading Linux 4.19.0-18-amd64 ...' linux /boot/vmlinuz-4.19.0-18-amd64 root=/dev/mapper/precession-root ro single echo 'Loading initial ramdisk ...' initrd /boot/initrd.img-4.19.0-18-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 ### ### 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 : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] md0 : active raid1 sdb2[2] sda2[0] 1948500800 blocks super 1.2 [2/2] [UU] unused devices: <none> *********************** END /proc/mdstat *********************** BEGIN /dev/disk/by-id total 0 lrwxrwxrwx 1 root root 9 Jan 3 16:19 ata-ST2000DM008-2FR102_ZK205WRJ -> ../../sdb lrwxrwxrwx 1 root root 10 Jan 3 16:19 ata-ST2000DM008-2FR102_ZK205WRJ-part1 -> ../../sdb1 lrwxrwxrwx 1 root root 10 Jan 3 16:19 ata-ST2000DM008-2FR102_ZK205WRJ-part2 -> ../../sdb2 lrwxrwxrwx 1 root root 9 Jan 3 16:19 ata-WDC_WD2002FAEX-00MJRA0_WD-WCC1P1012992 -> ../../sda lrwxrwxrwx 1 root root 10 Jan 3 16:19 ata-WDC_WD2002FAEX-00MJRA0_WD-WCC1P1012992-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Jan 3 16:19 ata-WDC_WD2002FAEX-00MJRA0_WD-WCC1P1012992-part2 -> ../../sda2 lrwxrwxrwx 1 root root 10 Jan 1 23:15 dm-name-precession-home -> ../../dm-3 lrwxrwxrwx 1 root root 10 Jan 1 23:15 dm-name-precession-root -> ../../dm-0 lrwxrwxrwx 1 root root 10 Jan 1 23:15 dm-name-precession-storage2013 -> ../../dm-4 lrwxrwxrwx 1 root root 10 Jan 1 23:15 dm-name-precession-swap -> ../../dm-5 lrwxrwxrwx 1 root root 10 Jan 1 23:15 dm-name-precession-tmp -> ../../dm-1 lrwxrwxrwx 1 root root 10 Jan 1 23:15 dm-name-precession-var -> ../../dm-2 lrwxrwxrwx 1 root root 10 Jan 1 23:15 dm-uuid-LVM-SYKWdydef2kZEkrhCLx30d5pHTqkIIVg3MuE9UTTyqY6OfcVjJl0Sd7M4qE6WmI1 -> ../../dm-0 lrwxrwxrwx 1 root root 10 Jan 1 23:15 dm-uuid-LVM-SYKWdydef2kZEkrhCLx30d5pHTqkIIVg8MivjyKHPtd4L1pNl0aVKd9a98ponu0c -> ../../dm-4 lrwxrwxrwx 1 root root 10 Jan 1 23:15 dm-uuid-LVM-SYKWdydef2kZEkrhCLx30d5pHTqkIIVgOcO08fvFLEO5IssCKAPmgMQHZed5tl6Q -> ../../dm-2 lrwxrwxrwx 1 root root 10 Jan 1 23:15 dm-uuid-LVM-SYKWdydef2kZEkrhCLx30d5pHTqkIIVgQxSxbEzJ2vwcETvWHnpnuSdFFTNtJCMX -> ../../dm-1 lrwxrwxrwx 1 root root 10 Jan 1 23:15 dm-uuid-LVM-SYKWdydef2kZEkrhCLx30d5pHTqkIIVgdVdhgLbLQxk2X0eWyYDy1CmnViEAT4f2 -> ../../dm-5 lrwxrwxrwx 1 root root 10 Jan 1 23:15 dm-uuid-LVM-SYKWdydef2kZEkrhCLx30d5pHTqkIIVgqvrebItIryZiZYjreEMlfYu7ZkePZ58f -> ../../dm-3 lrwxrwxrwx 1 root root 9 Jan 1 23:15 lvm-pv-uuid-oOX7Jy-Q9xM-LqSO-knhZ-HzYr-BstI-5fgA3M -> ../../md0 lrwxrwxrwx 1 root root 9 Jan 1 23:15 md-name-precession:0 -> ../../md0 lrwxrwxrwx 1 root root 9 Jan 1 23:15 md-uuid-c3b3f240:0967bba7:bd62ed32:631bd40a -> ../../md0 lrwxrwxrwx 1 root root 9 Jan 1 23:15 usb-HP_Photosmart_D110_CN13SG31BH05N9-0:0 -> ../../sdc lrwxrwxrwx 1 root root 9 Jan 3 16:19 wwn-0x5000c500c88a15c0 -> ../../sdb lrwxrwxrwx 1 root root 10 Jan 3 16:19 wwn-0x5000c500c88a15c0-part1 -> ../../sdb1 lrwxrwxrwx 1 root root 10 Jan 3 16:19 wwn-0x5000c500c88a15c0-part2 -> ../../sdb2 lrwxrwxrwx 1 root root 9 Jan 3 16:19 wwn-0x50014ee20967e310 -> ../../sda lrwxrwxrwx 1 root root 10 Jan 3 16:19 wwn-0x50014ee20967e310-part1 -> ../../sda1 lrwxrwxrwx 1 root root 10 Jan 3 16:19 wwn-0x50014ee20967e310-part2 -> ../../sda2 *********************** END /dev/disk/by-id *********************** BEGIN /dev/disk/by-uuid total 0 lrwxrwxrwx 1 root root 10 Jan 1 23:15 1d307c01-6300-4ae2-8045-5ca92f957aa4 -> ../../dm-1 lrwxrwxrwx 1 root root 10 Jan 1 23:15 40d35677-57a0-4f76-9daf-6df90010f0d6 -> ../../dm-5 lrwxrwxrwx 1 root root 10 Jan 1 23:15 5024982e-4eb0-468c-811e-7d99fbeb86d8 -> ../../dm-2 lrwxrwxrwx 1 root root 10 Jan 1 23:15 7ad62dbe-f31f-4d28-9915-2367145f6971 -> ../../dm-0 lrwxrwxrwx 1 root root 10 Jan 1 23:15 b00d9fcc-b8d2-4122-a2b5-1a2da9111412 -> ../../dm-4 lrwxrwxrwx 1 root root 10 Jan 1 23:15 e048dc4a-acb8-41cf-9825-04aa6c667fb5 -> ../../dm-3 *********************** END /dev/disk/by-uuid -- System Information: Debian Release: 11.2 APT prefers stable-security APT policy: (500, 'stable-security'), (500, 'stable') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.10.0-10-amd64 (SMP w/2 CPU threads) Kernel taint flags: TAINT_USER, TAINT_WARN Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages grub-pc depends on: ii debconf [debconf-2.0] 1.5.77 ii grub-common 2.04-20 ii grub-pc-bin 2.04-20 ii grub2-common 2.04-20 ii ucf 3.0043 grub-pc recommends no packages. grub-pc suggests no packages. -- debconf information excluded