Bug#498353: update-grub silently fails when device.map is not up to date
Robert Millan
rmh at aybabtu.com
Tue Sep 9 16:16:48 UTC 2008
On Tue, Sep 09, 2008 at 01:37:23PM +0200, Michal Čihař wrote:
> Package: grub
> Version: 0.97-47
> Severity: normal
> File: /usr/sbin/update-grub
>
> Hi
>
> during some updates, I ended up with device.map not containing correct
> mappings. In this situation update-grub silently fails without giving
> any notice what is wrong. From tracing this script, I found it ends with
> following commands:
>
> + test -e /boot/grub/device.map
> + GRUB_LEGACY_0_BASED_PARTITIONS=1 grub-probe --device-map=/boot/grub/device.map -t drive -d /dev/hda1
> + grub_root_device=
>
> The problem was that I did not have mapping for hda in device.map (it
> used to be hde in older kernel versions). I think update-grub should at
> least tell that something is wrong and not silently fail.
What does the grub-probe command print when run from outside the script?
--
Robert Millan
The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
how) you may access your data; but nobody's threatening your freedom: we
still allow you to remove your data and not access it at all."
More information about the Pkg-grub-devel
mailing list