Comment 29 for bug 580408

Revision history for this message
Martin Steigerwald (ms-proact) wrote :

I found this during upgrading our Zimbra server from Ubuntu 8.04 LTS to 10.04 LTS with

root@zimbra:~# dpkg -l | grep grub-pc
ii grub-pc 1.98-1ubuntu10[...]

So this bug is not fixed completely, one year after release of a long term support edition of Ubuntu and almost one year after reporting it. This makes me wonder, cause I assumed that Ubuntu LTS 10.04 was supposed to be a stabler branch of Ubuntu.

Manual work around I applied:

root@zimbra:~# debconf-show grub-pc
  grub-pc/kopt_extracted: true
  grub2/kfreebsd_cmdline:
* grub-pc/install_devices:
  grub-pc/postrm_purge_boot_grub: false
  grub-pc/disk_description:
* grub2/linux_cmdline:
* grub-pc/install_devices_empty: true
  grub2/kfreebsd_cmdline_default: quiet
  grub-pc/partition_description:
  grub-pc/install_devices_failed: false
  grub-pc/install_devices_disks_changed:
* grub2/linux_cmdline_default: quiet splash
* grub-pc/chainload_from_menu.lst: true
  grub-pc/hidden_timeout: true
  grub-pc/timeout: 3

root@zimbra:~# echo get grub-pc/install_devices | debconf-communicate
0

install_devices is not set, debconf *should* ask.

Set the value - adapt device name as needed for your setup.

root@zimbra:~# echo set grub-pc/install_devices /dev/sda | debconf-communicate
0 value set

Verify that it is set:

root@zimbra:~# echo get grub-pc/install_devices | debconf-communicate
0 /dev/sda

root@zimbra:~# dpkg-reconfigure grub-pc
[...]
Installation finished. No error reported.
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-2.6.32-31-server
Found initrd image: /boot/initrd.img-2.6.32-31-server
Found linux image: /boot/vmlinuz-2.6.24-29-server
Found initrd image: /boot/initrd.img-2.6.24-29-server
Found memtest86+ image: /boot/memtest86+.bin
done

Of course, grub-install /dev/sda should do the same job manually.

I never seen something like this in any version of debian stable.