Bug#527604: [grub-common] update-grub fails silently when grub-mkconfig fails on an outdated device.map

Felix Zielcke fzielcke at z-51.de
Wed Jul 22 15:36:13 UTC 2009


Am Freitag, den 08.05.2009, 15:13 +0200 schrieb Obey Arthur Liu:
> Package: grub-common
> Version: 1.96+20090504-1
> Severity: important
> 
> --- Please enter the report below this line. ---
> 
> I have a system which fails during kernels postinsts because update-grub
> returns 1. The problem was located at:
>     chain)
>       CHAINROOT="`grub-probe --target=drive --device ${DEVICE} 2>
> /dev/null`"
> grub-probe failed because the device.map was outdated. grub-mkconfig
> solved the problem.
> How could we make sure that the device.map is always up-to-date when
> grub-probe is called ?
> This bug is important because it blocks kernel upgrades without any
> explanation apart from "update-grub returns 1" and "postinst failed".
> update-grub itself returns nothing suspicious at all, since the error
> happens after the the last stdout output, does not produce error output
> and is only detectable through the exit number.
> 
> The error output of grub-probe should probably not be 2> /dev/null or be
> somehow parsed.
> 
> Cheers
> 
> Arthur

Hi, with the curent squeeze/sid version this shouldn't happen anymore,
prepare_grub_to_access_device is now used in 30_os-prober, which
doestn't send the output of grub-probe to /dev/null.
Though only in the sid version CHAINROOT is completely removed. I forgot
to do this first.

-- 
Felix Zielcke






More information about the Pkg-grub-devel mailing list