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

2009-07-22 Thread Felix Zielcke
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




-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



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

2009-05-08 Thread 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

--- System information. ---
Architecture: i386
Kernel:   Linux 2.6.29-aeris-1.0

Debian Release: squeeze/sid
  300 testing ftp.ch.debian.org
  100 unstableftp.ch.debian.org
1 experimentalftp.ch.debian.org
-- 
Obey Arthur Liu
http://www.milliways.fr



signature.asc
Description: OpenPGP digital signature