Bug#465708: grub-pc: Error in postinst

Philipp Matthias Hahn pmhahn at debian.org
Fri Feb 15 09:12:12 UTC 2008


Package: grub-pc
Version: 1.96+20080213-1
Followup-For: Bug #465708

I upgrades my system from grub to grub-pc some time ago. After the
upgrade I cleaned up /boot/grub/ and removed all old grub files,
especially /boot/grub/menu.lst
Now upgrading grub-pc fails because of the following:

/var/lib/dpkg/info/grub-pc.config:3
	if test -e /boot/grub/menu.lst ; then
	  ...
	  db_get grub-pc/linux_cmdline
	  if [ "$RET" = "fillme" ] ; then
	  ...
	    db_set grub-pc/linux_cmdline "${kopt}" || true
	    ...
	    db_input ${priority} grub-pc/linux_cmdline || true
	  fi
	  ...
	fi

/var/lib/dpkg/info/grub-pc.templates:41
	Template: grub-pc/linux_cmdline
	Type: string
	Default: fillme

/var/lib/dpkg/info/grub-pc.postinst:15
    db_get grub-pc/linux_cmdline
    if [ "$RET" == "fillme" ] ; then
      # wtf?!
      echo "Internal error in grub-pc package.  Please file a bug report." >&2
      exit 1

Since I no longer have /boot/grub/menu.lst, the part from
"grub-pc.config" never triggers and "grub-pc/linux_cmdline" keeps it
default "fillme" from "grub-pc.template", causing "grub-pc.postinst" to
fail miserably.

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (989, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24.2-laptop (PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-pc depends on:
ii  base-files                4.0.2          Debian base system miscellaneous f
ii  debconf [debconf-2.0]     1.5.19         Debian configuration management sy
ii  libc6                     2.7-8          GNU C Library: Shared libraries
ii  liblzo1                   1.08-3         data compression library (old vers
ii  libncurses5               5.6+20080203-1 Shared libraries for terminal hand

grub-pc recommends no packages.

-- debconf information:
  grub-pc/linux_cmdline: fillme
* grub-pc/chainload_from_menu.lst: true





More information about the Pkg-grub-devel mailing list