Bug#527604: [grub-common] update-grub fails silently when grub-mkconfig fails on an outdated device.map
Obey Arthur Liu
arthur at milliways.fr
Fri May 8 13:13:51 UTC 2009
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
--- System information. ---
Architecture: i386
Kernel: Linux 2.6.29-aeris-1.0
Debian Release: squeeze/sid
300 testing ftp.ch.debian.org
100 unstable ftp.ch.debian.org
1 experimental ftp.ch.debian.org
--
Obey Arthur Liu
<http://www.milliways.fr>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20090508/ff5624a6/attachment.pgp>
More information about the Pkg-grub-devel
mailing list