Bug#476833: [grub] update-grub can't find device.map if in /boot/boot/grub

segmentation at ntlworld.com segmentation at ntlworld.com
Sat Apr 19 13:05:15 UTC 2008


Package: grub
Version: 0.97-36
Severity: normal

--- Please enter the report below this line. ---

When trying to install a new self-compiled kernel update-grub fails on
grub-probe.  My grub install is in /boot/boot/grub.  Although the script
finds the installation directory it tries to look for device.map in the
default location /boot/grub

I added in "-m ${device_map}" on the 2 grub-probe lines (one in
find_device() and one in convert()) and the installation went ok.

Output from installation below.


Cheers,
D

Preparing to replace linux-image-2.6.24 dg.6.0 (using
linux-image-2.6.24_dg.6.0_i386.deb) ...
Done.
Unpacking replacement linux-image-2.6.24 ...
Running postrm hook script /usr/sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/boot/grub
grub-probe: error: Cannot open `/boot/grub/device.map'
User postrm hook script [/usr/sbin/update-grub] exited with value 1
Setting up linux-image-2.6.24 (dg.6.0) ...
Running depmod.
Not updating image symbolic links since we are being updated/reinstalled
(dg.6.0 was configured last, according to dpkg)
Running postinst hook script /usr/sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/boot/grub
grub-probe: error: Cannot open `/boot/grub/device.map'
User postinst hook script [/usr/sbin/update-grub] exited with value 1
dpkg: error processing linux-image-2.6.24 (--install):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 linux-image-2.6.24


--- System information. ---
Architecture: i386
Kernel: Linux 2.6.24

Debian Release: lenny/sid
500 unstable

--- Package information. ---
Depends (Version) | Installed
===================================-+-====================
grub-common | 1.96+20080413-1
libc6 (>= 2.7-1) | 2.7-10
libncurses5 (>= 5.6+20071006-3) | 5.6+20080405-1






More information about the Pkg-grub-devel mailing list