Bug#535525: grub-pc: Upgrade uses stale entry from devices.map

Harald Braumann harry at unheit.net
Thu Jul 2 23:25:23 UTC 2009


Package: grub-pc
Version: 1.96+20090603-2
Severity: normal

On upgrade, grub-pc asks on which devices I'd like to run grub-install.
The only option it displays, is /dev/hda. However, I only have /dev/sda.
It seems, that it only uses entries from devices.map, which might be 
outdated (as in my case). Also, there is no option to enter a device
manually.

grub-pc should either rescan the devices on upgrade or at least allow
the user to enter the device manually.

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/vgsys-lvroot / ext3 rw,errors=remount-ro,commit=5,data=ordered 0 0
/dev/mapper/vgraw-lvboot /boot ext3 rw,errors=continue,commit=5,data=ordered 0 0
/dev/mapper/vghb-lvhb /home/hb ext3 rw,errors=continue,commit=5,data=ordered 0 0
/dev/mapper/vgsys-lvvar /var ext3 rw,errors=continue,commit=5,data=ordered 0 0
/dev/mapper/vgsys-lvvm /var/lib/vm ext3 rw,errors=continue,commit=5,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(fd0)	/dev/fd0
(hd0)	/dev/hda
*********************** END /boot/grub/device.map

*********************** BEGIN /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, linux 2.6.29.3" {
	insmod lvm
	set root=(vgraw-lvboot)
	linux	/vmlinuz-2.6.29.3 root=/dev/mapper/vgsys-lvroot ro resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig 
	initrd	/initrd.img-2.6.29.3
}
menuentry "Debian GNU/Linux, linux 2.6.29.3 (recovery mode)" {
	insmod lvm
	set root=(vgraw-lvboot)
	linux	/vmlinuz-2.6.29.3 root=/dev/mapper/vgsys-lvroot ro single resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig
	initrd	/initrd.img-2.6.29.3
}
menuentry "Debian GNU/Linux, linux 2.6.27.8" {
	insmod lvm
	set root=(vgraw-lvboot)
	linux	/vmlinuz-2.6.27.8 root=/dev/mapper/vgsys-lvroot ro resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig 
	initrd	/initrd.img-2.6.27.8
}
menuentry "Debian GNU/Linux, linux 2.6.27.8 (recovery mode)" {
	insmod lvm
	set root=(vgraw-lvboot)
	linux	/vmlinuz-2.6.27.8 root=/dev/mapper/vgsys-lvroot ro single resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig
	initrd	/initrd.img-2.6.27.8
}
menuentry "Debian GNU/Linux, linux 2.6.26" {
	insmod lvm
	set root=(vgraw-lvboot)
	linux	/vmlinuz-2.6.26 root=/dev/mapper/vgsys-lvroot ro resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig 
	initrd	/initrd.img-2.6.26
}
menuentry "Debian GNU/Linux, linux 2.6.26 (recovery mode)" {
	insmod lvm
	set root=(vgraw-lvboot)
	linux	/vmlinuz-2.6.26 root=/dev/mapper/vgsys-lvroot ro single resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig
	initrd	/initrd.img-2.6.26
}
menuentry "Debian GNU/Linux, linux 2.6.25-1-686" {
	insmod lvm
	set root=(vgraw-lvboot)
	linux	/vmlinuz-2.6.25-1-686 root=/dev/mapper/vgsys-lvroot ro resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig 
	initrd	/initrd.img-2.6.25-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.25-1-686 (recovery mode)" {
	insmod lvm
	set root=(vgraw-lvboot)
	linux	/vmlinuz-2.6.25-1-686 root=/dev/mapper/vgsys-lvroot ro single resume=swap:/dev/mapper/vgsys-lvswap no_console_suspend hpet=force acpi_sleep=s4_nohwsig
	initrd	/initrd.img-2.6.25-1-686
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29.3
Locale: LANG=POSIX, LC_CTYPE=de_AT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-pc depends on:
ii  debconf [debconf-2.0]         1.5.26     Debian configuration management sy
pn  grub-common                   <none>     (no description available)
ii  libc6                         2.9-12     GNU C Library: Shared libraries

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
pn  desktop-base                  <none>     (no description available)
ii  genisoimage                   9:1.1.9-1  Creates ISO-9660 CD-ROM filesystem
pn  os-prober                     <none>     (no description available)

-- debconf information:
* grub-pc/linux_cmdline:
* grub-pc/chainload_from_menu.lst: false
* grub-pc/install_devices:





More information about the Pkg-grub-devel mailing list