Package: grub-legacy Version: 0.97-60 Severity: normal Tag: patch When root is on btrfs, update-grub just exits nonzero, no error message.
This is because it uses grub-probe, and per #540786 that doesn't support btrfs. I sent a patch to #540786 that works around the grub-probe problem in grub 2's update-grub. If that patch is applied, the same problem can be worked around in grub-legacy's update grub via the attached patch. -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.32-trunk-686 (SMP w/2 CPU cores) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages grub-legacy depends on: ii grub-common 1.98~20100126-1 GRand Unified Bootloader, version ii libc6 2.10.2-5 Embedded GNU C Library: Shared lib ii libncurses5 5.7+20090803-2 shared libraries for terminal hand grub-legacy recommends no packages. Versions of packages grub-legacy suggests: pn grub-legacy-doc <none> (no description available) pn mdadm <none> (no description available) pn multiboot-doc <none> (no description available) -- see shy jo
--- update-grub.orig 2010-01-26 23:30:19.117596575 -0500 +++ update-grub 2010-01-26 23:30:24.693653198 -0500 @@ -110,12 +110,15 @@ # Full path to the device.map device_map=$grub_dir/device.map +. /usr/lib/grub/grub-mkconfig_lib + find_device () { if ! test -e ${device_map} ; then echo quit | grub --batch --no-floppy --device-map=${device_map} > /dev/null fi - grub-probe --device-map=${device_map} -t device $1 2> /dev/null + grub-probe --device-map=${device_map} -t device $1 2> /dev/null || + legacy_find_root_device } # Usage: convert_raid1 os_device
signature.asc
Description: Digital signature