On Sun, Aug 3, 2008 at 12:43 AM, Robert Millan <[EMAIL PROTECTED]> wrote: > Please could you try previous versions of update-grub (using either our SVN > or packages from http://snapshot.debian.net/) and determine when was this > problem introduced?
The change seems to be introduced in v0.97-29 since up to v0.97-28 has the same ordering. I've written "change" not "bug" since I'm not sure it is a problem. That is because `update-grub' is supposed to create a list with a descending ordering. This means that there is a "char" comparison and the one with a higher value should go first, for example -openvz-amd64 would go before -amd64 ('a' char vs 'o' char). The same way -2.6.26-1-amd64 has precedence over -2.6.25-2-amd64 (25 vs 26). Thanks
piti:~# apt install grub/stable Reading package lists... Done Building dependency tree Reading state information... Done Selected version 0.97-27etch1 (Debian:4.0r4a/stable) for grub The following packages were automatically installed and are no longer required: grub-common Use 'apt-get autoremove' to remove them. Suggested packages: grub-doc mdadm The following packages will be DOWNGRADED: grub 0 upgraded, 0 newly installed, 1 downgraded, 0 to remove and 0 not upgraded. Need to get 884kB of archives. After this operation, 102kB disk space will be freed. Do you want to continue [Y/n]? Get:1 http://ftp.ro.debian.org etch/main grub 0.97-27etch1 [884kB] Fetched 884kB in 0s (2906kB/s) Reading package fields... Done Reading package status... Done Retrieving bug reports... Done Parsing Found/Fixed information... Done dpkg - warning: downgrading grub from 0.97-44 to 0.97-27etch1. (Reading database ... 145250 files and directories currently installed.) Preparing to replace grub 0.97-44 (using .../grub_0.97-27etch1_amd64.deb) ... Unpacking replacement grub ... Processing triggers for man-db ... Setting up grub (0.97-27etch1) ... piti:~# piti:~# piti:~# dpkg -l grub Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-=============================-=============================-========================================================================== ii grub 0.97-27etch1 GRand Unified Bootloader piti:~# which update-grub /usr/sbin/update-grub piti:~# dpkg -S $(which update-grub) grub: /usr/sbin/update-grub piti:~# piti:~# piti:~# update-grub Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found Xen hypervisor 3.2-1-amd64, kernel: /boot/vmlinuz-2.6.18-6-xen-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-openvz-amd64 Found kernel: /boot/vmlinuz-2.6.25-2-amd64 Found kernel: /boot/vmlinuz-2.6.24-etchnhalf.1-amd64 Found kernel: /boot/memtest86.bin Found kernel: /boot/memtest86+.bin Updating /boot/grub/menu.lst ... done
piti:~# for t in $(seq 28 38); do apt install grub=0.97-$t; update-grub; printf "\n--------------------\n"; done Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: grub-doc mdadm The following packages will be upgraded: grub 1 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. Need to get 0B/825kB of archives. After this operation, 111kB disk space will be freed. WARNING: The following packages cannot be authenticated! grub Install these packages without verification [y/N]? y (Reading database ... 144904 files and directories currently installed.) Preparing to replace grub 0.97-27etch1 (using .../grub_0.97-28_amd64.deb) ... Unpacking replacement grub ... Processing triggers for man-db ... Setting up grub (0.97-28) ... Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found Xen hypervisor 3.2-1-amd64, kernel: /boot/vmlinuz-2.6.18-6-xen-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-openvz-amd64 Found kernel: /boot/vmlinuz-2.6.25-2-amd64 Found kernel: /boot/vmlinuz-2.6.24-etchnhalf.1-amd64 Found kernel: /boot/memtest86.bin Found kernel: /boot/memtest86+.bin Updating /boot/grub/menu.lst ... done -------------------- Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: grub-doc mdadm The following packages will be upgraded: grub 1 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. Need to get 0B/819kB of archives. After this operation, 16.4kB disk space will be freed. WARNING: The following packages cannot be authenticated! grub Install these packages without verification [y/N]? y (Reading database ... 144904 files and directories currently installed.) Preparing to replace grub 0.97-28 (using .../grub_0.97-29_amd64.deb) ... Unpacking replacement grub ... Processing triggers for man-db ... Setting up grub (0.97-29) ... Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found Xen hypervisor 3.2-1-amd64, kernel: /boot/vmlinuz-2.6.18-6-xen-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-openvz-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-amd64 Found kernel: /boot/vmlinuz-2.6.25-2-amd64 Found kernel: /boot/vmlinuz-2.6.24-etchnhalf.1-amd64 Found kernel: /boot/memtest86.bin Found kernel: /boot/memtest86+.bin Updating /boot/grub/menu.lst ... done -------------------- Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: grub-doc mdadm The following packages will be upgraded: grub 1 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. Need to get 886kB of archives. After this operation, 139kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! grub Install these packages without verification [y/N]? y Get:1 http://snapshot.debian.net pool/grub grub 0.97-30 [886kB] Fetched 886kB in 5s (171kB/s) (Reading database ... 144902 files and directories currently installed.) Preparing to replace grub 0.97-29 (using .../grub_0.97-30_amd64.deb) ... Unpacking replacement grub ... Processing triggers for man-db ... Setting up grub (0.97-30) ... Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found Xen hypervisor 3.2-1-amd64, kernel: /boot/vmlinuz-2.6.18-6-xen-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-openvz-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-amd64 Found kernel: /boot/vmlinuz-2.6.25-2-amd64 Found kernel: /boot/vmlinuz-2.6.24-etchnhalf.1-amd64 Found kernel: /boot/memtest86.bin Found kernel: /boot/memtest86+.bin Updating /boot/grub/menu.lst ... done -------------------- Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: grub-doc mdadm The following packages will be upgraded: grub 1 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. Need to get 887kB of archives. After this operation, 4096B of additional disk space will be used. WARNING: The following packages cannot be authenticated! grub Install these packages without verification [y/N]? y Get:1 http://snapshot.debian.net pool/grub grub 0.97-31 [887kB] Fetched 887kB in 5s (171kB/s) (Reading database ... 144902 files and directories currently installed.) Preparing to replace grub 0.97-30 (using .../grub_0.97-31_amd64.deb) ... Unpacking replacement grub ... Processing triggers for man-db ... Setting up grub (0.97-31) ... Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found Xen hypervisor 3.2-1-amd64, kernel: /boot/vmlinuz-2.6.18-6-xen-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-openvz-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-amd64 Found kernel: /boot/vmlinuz-2.6.25-2-amd64 Found kernel: /boot/vmlinuz-2.6.24-etchnhalf.1-amd64 Found kernel: /boot/memtest86.bin Found kernel: /boot/memtest86+.bin Updating /boot/grub/menu.lst ... done -------------------- Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: grub-legacy-doc mdadm The following packages will be upgraded: grub 1 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. Need to get 887kB of archives. After this operation, 0B of additional disk space will be used. WARNING: The following packages cannot be authenticated! grub Install these packages without verification [y/N]? y Get:1 http://snapshot.debian.net pool/grub grub 0.97-32 [887kB] Fetched 887kB in 5s (172kB/s) (Reading database ... 144902 files and directories currently installed.) Preparing to replace grub 0.97-31 (using .../grub_0.97-32_amd64.deb) ... Unpacking replacement grub ... Processing triggers for man-db ... Setting up grub (0.97-32) ... Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found Xen hypervisor 3.2-1-amd64, kernel: /boot/vmlinuz-2.6.18-6-xen-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-openvz-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-amd64 Found kernel: /boot/vmlinuz-2.6.25-2-amd64 Found kernel: /boot/vmlinuz-2.6.24-etchnhalf.1-amd64 Found kernel: /boot/memtest86.bin Found kernel: /boot/memtest86+.bin Updating /boot/grub/menu.lst ... done -------------------- Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: grub grub-common Suggested packages: grub-legacy-doc mdadm multiboot-doc The following NEW packages will be installed: grub-common The following packages will be upgraded: grub 1 upgraded, 1 newly installed, 0 to remove and 12 not upgraded. Need to get 885kB/1080kB of archives. After this operation, 328kB of additional disk space will be used. Do you want to continue [Y/n]? y WARNING: The following packages cannot be authenticated! grub Install these packages without verification [y/N]? y Get:1 http://snapshot.debian.net pool/grub grub 0.97-33 [885kB] Fetched 885kB in 5s (171kB/s) Selecting previously deselected package grub-common. (Reading database ... 144902 files and directories currently installed.) Unpacking grub-common (from .../grub-common_1.96+20080724-4_amd64.deb) ... Preparing to replace grub 0.97-32 (using .../grub_0.97-33_amd64.deb) ... Unpacking replacement grub ... Processing triggers for man-db ... Setting up grub-common (1.96+20080724-4) ... Setting up grub (0.97-33) ... Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found Xen hypervisor 3.2-1-amd64, kernel: /boot/vmlinuz-2.6.18-6-xen-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-openvz-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-amd64 Found kernel: /boot/vmlinuz-2.6.25-2-amd64 Found kernel: /boot/vmlinuz-2.6.24-etchnhalf.1-amd64 Found kernel: /boot/memtest86.bin Found kernel: /boot/memtest86+.bin Updating /boot/grub/menu.lst ... done -------------------- Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: grub-legacy-doc mdadm multiboot-doc The following packages will be upgraded: grub 1 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. Need to get 850kB of archives. After this operation, 86.0kB disk space will be freed. WARNING: The following packages cannot be authenticated! grub Install these packages without verification [y/N]? y Get:1 http://snapshot.debian.net pool/grub grub 0.97-34 [850kB] Fetched 850kB in 5s (166kB/s) (Reading database ... 144913 files and directories currently installed.) Preparing to replace grub 0.97-33 (using .../grub_0.97-34_amd64.deb) ... Unpacking replacement grub ... Processing triggers for man-db ... Setting up grub (0.97-34) ... Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found Xen hypervisor 3.2-1-amd64, kernel: /boot/vmlinuz-2.6.18-6-xen-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-openvz-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-amd64 Found kernel: /boot/vmlinuz-2.6.25-2-amd64 Found kernel: /boot/vmlinuz-2.6.24-etchnhalf.1-amd64 Found kernel: /boot/memtest86.bin Found kernel: /boot/memtest86+.bin Updating /boot/grub/menu.lst ... done -------------------- Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: grub-legacy-doc mdadm multiboot-doc The following packages will be upgraded: grub 1 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. Need to get 903kB of archives. After this operation, 106kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! grub Install these packages without verification [y/N]? y Get:1 http://snapshot.debian.net pool/grub grub 0.97-35 [903kB] Fetched 903kB in 5s (178kB/s) (Reading database ... 144913 files and directories currently installed.) Preparing to replace grub 0.97-34 (using .../grub_0.97-35_amd64.deb) ... Unpacking replacement grub ... Processing triggers for man-db ... Setting up grub (0.97-35) ... Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found Xen hypervisor 3.2-1-amd64, kernel: /boot/vmlinuz-2.6.18-6-xen-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-openvz-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-amd64 Found kernel: /boot/vmlinuz-2.6.25-2-amd64 Found kernel: /boot/vmlinuz-2.6.24-etchnhalf.1-amd64 Found kernel: /boot/memtest86.bin Found kernel: /boot/memtest86+.bin Updating /boot/grub/menu.lst ... done -------------------- Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: grub-legacy-doc mdadm multiboot-doc The following packages will be upgraded: grub 1 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. Need to get 885kB of archives. After this operation, 16.4kB disk space will be freed. WARNING: The following packages cannot be authenticated! grub Install these packages without verification [y/N]? y Get:1 http://snapshot.debian.net pool/grub grub 0.97-36 [885kB] Fetched 885kB in 5s (171kB/s) (Reading database ... 144913 files and directories currently installed.) Preparing to replace grub 0.97-35 (using .../grub_0.97-36_amd64.deb) ... Unpacking replacement grub ... Processing triggers for man-db ... Setting up grub (0.97-36) ... Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found Xen hypervisor 3.2-1-amd64, kernel: /boot/vmlinuz-2.6.18-6-xen-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-openvz-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-amd64 Found kernel: /boot/vmlinuz-2.6.25-2-amd64 Found kernel: /boot/vmlinuz-2.6.24-etchnhalf.1-amd64 Found kernel: /boot/memtest86.bin Found kernel: /boot/memtest86+.bin Updating /boot/grub/menu.lst ... done -------------------- Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: grub-legacy-doc multiboot-doc mdadm The following packages will be upgraded: grub 1 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. Need to get 901kB of archives. After this operation, 45.1kB of additional disk space will be used. WARNING: The following packages cannot be authenticated! grub Install these packages without verification [y/N]? y Get:1 http://snapshot.debian.net pool/grub grub 0.97-37 [901kB] Fetched 901kB in 5s (165kB/s) (Reading database ... 144914 files and directories currently installed.) Preparing to replace grub 0.97-36 (using .../grub_0.97-37_amd64.deb) ... Unpacking replacement grub ... Processing triggers for man-db ... Setting up grub (0.97-37) ... Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found Xen hypervisor 3.2-1-amd64, kernel: /boot/vmlinuz-2.6.18-6-xen-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-openvz-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-amd64 Found kernel: /boot/vmlinuz-2.6.25-2-amd64 Found kernel: /boot/vmlinuz-2.6.24-etchnhalf.1-amd64 Found kernel: /boot/memtest86.bin Found kernel: /boot/memtest86+.bin Updating /boot/grub/menu.lst ... done -------------------- Reading package lists... Done Building dependency tree Reading state information... Done Suggested packages: grub-legacy-doc multiboot-doc mdadm The following packages will be upgraded: grub 1 upgraded, 0 newly installed, 0 to remove and 12 not upgraded. Need to get 901kB of archives. After this operation, 0B of additional disk space will be used. WARNING: The following packages cannot be authenticated! grub Install these packages without verification [y/N]? y Get:1 http://snapshot.debian.net pool/grub grub 0.97-38 [901kB] Fetched 901kB in 5s (172kB/s) (Reading database ... 144914 files and directories currently installed.) Preparing to replace grub 0.97-37 (using .../grub_0.97-38_amd64.deb) ... Unpacking replacement grub ... Processing triggers for man-db ... Setting up grub (0.97-38) ... Searching for GRUB installation directory ... found: /boot/grub Searching for default file ... found: /boot/grub/default Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst Searching for splash image ... none found, skipping ... Found Xen hypervisor 3.2-1-amd64, kernel: /boot/vmlinuz-2.6.18-6-xen-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-openvz-amd64 Found kernel: /boot/vmlinuz-2.6.26-1-amd64 Found kernel: /boot/vmlinuz-2.6.25-2-amd64 Found kernel: /boot/vmlinuz-2.6.24-etchnhalf.1-amd64 Found kernel: /boot/memtest86.bin Found kernel: /boot/memtest86+.bin Updating /boot/grub/menu.lst ... done