Bug#476389: grub-pc: postinst fails

Philipp Kern pkern at debian.org
Wed Apr 16 12:11:55 UTC 2008


Package: grub-pc
Severity: important
Version: 1.96+20080413-1

grub-pc fails in postinst for me as it tries to probe my DVD drive
(/dev/hda1).  A typescript with some `set -x' placed in the scripts
is attached.

Previous versions worked fine, but os-prober was upgraded, too and
it fails in `/etc/grub.d/30_os-prober'.

Kind regards,
Philipp Kern
-- 
 .''`.  Philipp Kern                             Debian Developer
: :' :  http://philkern.de                       Debian Release Assistant
`. `'   xmpp:phil at 0x539.de
  `-    finger pkern/key at db.debian.org
-------------- next part --------------
Script started on Wed 16 Apr 2008 14:09:14 CEST
]0;~ [asterix]]0;~ [asterix]%                                                                               

~ > [asterix]ssudo dpkg --configure -a

Setting up grub-pc (1.96+20080413-1) ...
+ case "$1" in
+ . /usr/share/debconf/confmodule
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/debconf/frontend /var/lib/dpkg/info/grub-pc.postinst configure 1.96+20080408-1
+ case "$1" in
+ . /usr/share/debconf/confmodule
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ mkdir -p /boot/grub
+ test -e /boot/grub/device.map
+ test -e /boot/grub/core.img
+ test -e /boot/grub/menu.lst
+ db_get grub-pc/linux_cmdline
+ _db_cmd 'GET grub-pc/linux_cmdline'
+ IFS=' '
+ printf '%s\n' 'GET grub-pc/linux_cmdline'
+ IFS='
'
+ read -r _db_internal_line
+ RET=
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ '[' '' == fillme ']'
+ '[' '' '!=' '' ']'
+ db_get grub-pc/chainload_from_menu.lst
+ _db_cmd 'GET grub-pc/chainload_from_menu.lst'
+ IFS=' '
+ printf '%s\n' 'GET grub-pc/chainload_from_menu.lst'
+ IFS='
'
+ read -r _db_internal_line
+ RET=true
+ case ${_db_internal_line%%[ 	]*} in
+ return 0
+ true
+ test -e /boot/grub/menu.lst
+ test -e /boot/grub/core.img
+ test -e /boot/grub/grub.cfg
+ update-grub
+ transform=s,x,x,
+ prefix=/usr
+ exec_prefix=/usr
+ sbindir=/usr/sbin
+ libdir=/usr/lib
+ sysconfdir=/etc
+ echo /boot/grub
+ sed s,x,x,
+ grub_prefix=/boot/grub
+ grub_cfg=/boot/grub/grub.cfg
+ update_grub_dir=/etc/grub.d
+ platform=pc
+ echo grub-mkdevicemap
+ sed s,x,x,
+ grub_mkdevicemap=/usr/sbin/grub-mkdevicemap
+ echo grub-probe
+ sed s,x,x,
+ grub_probe=/usr/sbin/grub-probe
+ . /usr/lib/grub/update-grub_lib
+ transform=s,x,x,
+ prefix=/usr
+ exec_prefix=/usr
+ datarootdir=/usr/share
+ datadir=/usr/share
+ sbindir=/usr/sbin
+ echo grub
+ sed s,x,x,
+ pkgdatadir=/usr/share/grub
+ echo grub-probe
+ sed s,x,x,
+ grub_probe=/usr/sbin/grub-probe
+ [ x = x ]
+ id -u
+ UID=0
+ [ 0 != 0 ]
+ set /usr/sbin/grub-mkdevicemap dummy
+ test -f /usr/sbin/grub-mkdevicemap
+ :
+ set /usr/sbin/grub-probe dummy
+ test -f /usr/sbin/grub-probe
+ :
+ mkdir -p /boot/grub
+ test -e /boot/grub/device.map
+ :
+ grub-probe --target=device /
+ GRUB_DEVICE=/dev/mapper/asterix-root
+ grub-probe --target=fs /
+ echo unknown
+ GRUB_FS=unknown
+ grub-probe --target=drive /
+ GRUB_DRIVE=(asterix-root)
+ convert_system_path_to_grub_path /boot
+ path=/boot
+ test -e /boot
+ :
+ /usr/sbin/grub-probe -t fs /boot
+ :
+ /usr/sbin/grub-probe -t drive /boot
+ drive=(hd0,1)
+ :
+ make_system_path_relative_to_its_root /boot
+ path=/boot
+ test -e /boot
+ :
+ readlink -f /boot
+ path=/boot
+ :
+ test -d /boot
+ dir=/boot
+ stat -c %d /boot
+ num=2049
+ :
+ readlink -f /boot/..
+ parent=/
+ stat -c %d /
+ [ x65026 = x2049 ]
+ break
+ echo /boot
+ sed -e s,^/boot,/,g -e s,//,/,g
+ relative_path=/
+ :
+ echo /
+ sed -e s,/*$,,g
+ relative_path=
+ echo (hd0,1)
+ GRUB_DRIVE_BOOT=(hd0,1)
+ convert_system_path_to_grub_path /boot/grub
+ path=/boot/grub
+ test -e /boot/grub
+ :
+ /usr/sbin/grub-probe -t fs /boot/grub
+ :
+ /usr/sbin/grub-probe -t drive /boot/grub
+ drive=(hd0,1)
+ :
+ make_system_path_relative_to_its_root /boot/grub
+ path=/boot/grub
+ test -e /boot/grub
+ :
+ readlink -f /boot/grub
+ path=/boot/grub
+ :
+ test -d /boot/grub
+ dir=/boot/grub
+ stat -c %d /boot/grub
+ num=2049
+ :
+ readlink -f /boot/grub/..
+ parent=/boot
+ stat -c %d /boot
+ [ x2049 = x2049 ]
+ :
+ [ x/boot/grub = x/ ]
+ dir=/boot
+ :
+ readlink -f /boot/..
+ parent=/
+ stat -c %d /
+ [ x65026 = x2049 ]
+ break
+ echo /boot/grub
+ sed -e s,^/boot,/,g -e s,//,/,g
+ relative_path=/grub
+ :
+ echo /grub
+ sed -e s,/*$,,g
+ relative_path=/grub
+ echo (hd0,1)/grub
+ GRUB_DRIVE_BOOT_GRUB=(hd0,1)/grub
+ test -f /etc/default/grub
+ . /etc/default/grub
+ GRUB_DEFAULT=0
+ GRUB_TIMEOUT=5
+ lsb_release -i -s
+ GRUB_DISTRIBUTOR=Debian
+ GRUB_CMDLINE_LINUX=quiet
+ GRUB_TERMINAL=gfxterm
+ font_path
+ path=/usr/share/grub/unicode.pff
+ convert_system_path_to_grub_path /usr/share/grub/unicode.pff
+ path=/usr/share/grub/unicode.pff
+ test -e /usr/share/grub/unicode.pff
+ :
+ /usr/sbin/grub-probe -t fs /usr/share/grub/unicode.pff
+ return 1
+ path=/usr/share/grub/unifont.pff
+ convert_system_path_to_grub_path /usr/share/grub/unifont.pff
+ path=/usr/share/grub/unifont.pff
+ test -e /usr/share/grub/unifont.pff
+ return 1
+ path=/usr/share/grub/ascii.pff
+ convert_system_path_to_grub_path /usr/share/grub/ascii.pff
+ path=/usr/share/grub/ascii.pff
+ test -e /usr/share/grub/ascii.pff
+ :
+ /usr/sbin/grub-probe -t fs /usr/share/grub/ascii.pff
+ return 1
+ path=/usr/share/grub/unicode.pff
+ convert_system_path_to_grub_path /usr/share/grub/unicode.pff
+ path=/usr/share/grub/unicode.pff
+ test -e /usr/share/grub/unicode.pff
+ :
+ /usr/sbin/grub-probe -t fs /usr/share/grub/unicode.pff
+ return 1
+ path=/usr/share/grub/unifont.pff
+ convert_system_path_to_grub_path /usr/share/grub/unifont.pff
+ path=/usr/share/grub/unifont.pff
+ test -e /usr/share/grub/unifont.pff
+ return 1
+ path=/usr/share/grub/ascii.pff
+ convert_system_path_to_grub_path /usr/share/grub/ascii.pff
+ path=/usr/share/grub/ascii.pff
+ test -e /usr/share/grub/ascii.pff
+ :
+ /usr/sbin/grub-probe -t fs /usr/share/grub/ascii.pff
+ return 1
+ path=/boot/grub/unicode.pff
+ convert_system_path_to_grub_path /boot/grub/unicode.pff
+ path=/boot/grub/unicode.pff
+ test -e /boot/grub/unicode.pff
+ :
+ /usr/sbin/grub-probe -t fs /boot/grub/unicode.pff
+ :
+ /usr/sbin/grub-probe -t drive /boot/grub/unicode.pff
+ drive=(hd0,1)
+ :
+ make_system_path_relative_to_its_root /boot/grub/unicode.pff
+ path=/boot/grub/unicode.pff
+ test -e /boot/grub/unicode.pff
+ :
+ readlink -f /boot/grub/unicode.pff
+ path=/boot/grub/unicode.pff
+ :
+ test -d /boot/grub/unicode.pff
+ echo /boot/grub/unicode.pff
+ sed -e s,/[^/]*$,,g
+ dir=/boot/grub
+ stat -c %d /boot/grub
+ num=2049
+ :
+ readlink -f /boot/grub/..
+ parent=/boot
+ stat -c %d /boot
+ [ x2049 = x2049 ]
+ :
+ [ x/boot/grub = x/ ]
+ dir=/boot
+ :
+ readlink -f /boot/..
+ parent=/
+ stat -c %d /
+ [ x65026 = x2049 ]
+ break
+ echo /boot/grub/unicode.pff
+ sed -e s,^/boot,/,g -e s,//,/,g
+ relative_path=/grub/unicode.pff
+ :
+ echo /grub/unicode.pff
+ sed -e s,/*$,,g
+ relative_path=/grub/unicode.pff
+ echo (hd0,1)/grub/unicode.pff
+ echo /boot/grub/unicode.pff
+ return 0
+ path=/boot/grub/unicode.pff
+ convert_system_path_to_grub_path /boot/grub/unicode.pff
+ path=/boot/grub/unicode.pff
+ test -e /boot/grub/unicode.pff
+ :
+ /usr/sbin/grub-probe -t fs /boot/grub/unicode.pff
+ :
+ /usr/sbin/grub-probe -t drive /boot/grub/unicode.pff
+ drive=(hd0,1)
+ :
+ make_system_path_relative_to_its_root /boot/grub/unicode.pff
+ path=/boot/grub/unicode.pff
+ test -e /boot/grub/unicode.pff
+ :
+ readlink -f /boot/grub/unicode.pff
+ path=/boot/grub/unicode.pff
+ :
+ test -d /boot/grub/unicode.pff
+ echo /boot/grub/unicode.pff
+ sed -e s,/[^/]*$,,g
+ dir=/boot/grub
+ stat -c %d /boot/grub
+ num=2049
+ :
+ readlink -f /boot/grub/..
+ parent=/boot
+ stat -c %d /boot
+ [ x2049 = x2049 ]
+ :
+ [ x/boot/grub = x/ ]
+ dir=/boot
+ :
+ readlink -f /boot/..
+ parent=/
+ stat -c %d /
+ [ x65026 = x2049 ]
+ break
+ echo /boot/grub/unicode.pff
+ sed -e s,^/boot,/,g -e s,//,/,g
+ relative_path=/grub/unicode.pff
+ :
+ echo /grub/unicode.pff
+ sed -e s,/*$,,g
+ relative_path=/grub/unicode.pff
+ echo (hd0,1)/grub/unicode.pff
+ GRUB_FONT_PATH=(hd0,1)/grub/unicode.pff
+ /usr/sbin/grub-probe -t abstraction /boot/grub/unicode.pff
+ GRUB_PRELOAD_MODULES=
+ export GRUB_DEVICE GRUB_FS GRUB_DRIVE GRUB_DRIVE_BOOT GRUB_DRIVE_BOOT_GRUB GRUB_FONT_PATH GRUB_PRELOAD_MODULES
+ export GRUB_DEFAULT GRUB_TIMEOUT GRUB_DISTRIBUTOR GRUB_CMDLINE_LINUX GRUB_TERMINAL GRUB_SERIAL_COMMAND
+ exec
+ chmod 444 /boot/grub/grub.cfg.new
+ echo Updating /boot/grub/grub.cfg ...
Updating /boot/grub/grub.cfg ...
+ cat
+ grub_file_is_not_garbage /etc/grub.d/00_header
+ test -f /etc/grub.d/00_header
+ return 0
+ test -x /etc/grub.d/00_header
+ echo
+ echo ### BEGIN /etc/grub.d/00_header ###
+ /etc/grub.d/00_header
+ echo ### END /etc/grub.d/00_header ###
+ grub_file_is_not_garbage /etc/grub.d/05_debian_theme
+ test -f /etc/grub.d/05_debian_theme
+ return 0
+ test -x /etc/grub.d/05_debian_theme
+ echo
+ echo ### BEGIN /etc/grub.d/05_debian_theme ###
+ /etc/grub.d/05_debian_theme
Found Debian background: debian-blueish-wallpaper-640x480.png
+ echo ### END /etc/grub.d/05_debian_theme ###
+ grub_file_is_not_garbage /etc/grub.d/10_hurd
+ test -f /etc/grub.d/10_hurd
+ return 0
+ test -x /etc/grub.d/10_hurd
+ echo
+ echo ### BEGIN /etc/grub.d/10_hurd ###
+ /etc/grub.d/10_hurd
+ echo ### END /etc/grub.d/10_hurd ###
+ grub_file_is_not_garbage /etc/grub.d/10_linux
+ test -f /etc/grub.d/10_linux
+ return 0
+ test -x /etc/grub.d/10_linux
+ echo
+ echo ### BEGIN /etc/grub.d/10_linux ###
+ /etc/grub.d/10_linux
Found linux image: /boot/vmlinuz-2.6.24-1-amd64
Found initrd image: /boot/initrd.img-2.6.24-1-amd64
+ echo ### END /etc/grub.d/10_linux ###
+ grub_file_is_not_garbage /etc/grub.d/30_os-prober
+ test -f /etc/grub.d/30_os-prober
+ return 0
+ test -x /etc/grub.d/30_os-prober
+ echo
+ echo ### BEGIN /etc/grub.d/30_os-prober ###
+ /etc/grub.d/30_os-prober
+ which os-prober
+ which linux-boot-prober
+ [ -z /usr/bin/os-prober -o -z /usr/bin/linux-boot-prober ]
+ os-prober
+ tr   ^
+ paste -s -d  
+ OSPROBED=/dev/mapper/asterix-sid32:Debian^GNU/Linux^(lenny/sid):Debian:linux
+ [ -z /dev/mapper/asterix-sid32:Debian^GNU/Linux^(lenny/sid):Debian:linux ]
+ echo /dev/mapper/asterix-sid32:Debian^GNU/Linux^(lenny/sid):Debian:linux
+ cut -d : -f 1
+ DEVICE=/dev/mapper/asterix-sid32
+ echo /dev/mapper/asterix-sid32:Debian^GNU/Linux^(lenny/sid):Debian:linux
+ cut -d : -f 2
+ tr ^  
+ LONGNAME=Debian GNU/Linux (lenny/sid)
+ echo /dev/mapper/asterix-sid32:Debian^GNU/Linux^(lenny/sid):Debian:linux
+ cut -d : -f 3
+ tr ^  
+ LABEL=Debian
+ echo /dev/mapper/asterix-sid32:Debian^GNU/Linux^(lenny/sid):Debian:linux
+ cut -d : -f 4
+ BOOT=linux
+ [ -z Debian GNU/Linux (lenny/sid) ]
+ echo Found Debian GNU/Linux (lenny/sid) on /dev/mapper/asterix-sid32
Found Debian GNU/Linux (lenny/sid) on /dev/mapper/asterix-sid32
+ linux-boot-prober /dev/mapper/asterix-sid32
+ tr   ^
+ paste -s -d  
+ LINUXPROBED=/dev/mapper/kodama-root:/dev/hda1:Debian^GNU/Linux,^linux^2.6.24-1-amd64:/boot/vmlinuz-2.6.24-1-amd64:/boot/initrd.img-2.6.24-1-amd64:root=/dev/mapper/asterix-root^ro^quiet /dev/mapper/kodama-root:/dev/hda1:Debian^GNU/Linux,^linux^2.6.24-1-amd64^(single-user^mode):/boot/vmlinuz-2.6.24-1-amd64:/boot/initrd.img-2.6.24-1-amd64:root=/dev/mapper/asterix-root^ro^single^quiet /dev/mapper/asterix-sid32:/dev/hda1:Debian^GNU/Linux,^linux^2.6.24-1-amd64:/boot/vmlinuz-2.6.24-1-amd64:/boot/initrd.img-2.6.24-1-amd64:root=/dev/mapper/asterix-root^ro^quiet /dev/mapper/asterix-sid32:/dev/hda1:Debian^GNU/Linux,^linux^2.6.24-1-amd64^(single-user^mode):/boot/vmlinuz-2.6.24-1-amd64:/boot/initrd.img-2.6.24-1-amd64:root=/dev/mapper/asterix-root^ro^single^quiet
+ echo /dev/mapper/kodama-root:/dev/hda1:Debian^GNU/Linux,^linux^2.6.24-1-amd64:/boot/vmlinuz-2.6.24-1-amd64:/boot/initrd.img-2.6.24-1-amd64:root=/dev/mapper/asterix-root^ro^quiet
+ cut -d : -f 1
+ LROOT=/dev/mapper/kodama-root
+ echo /dev/mapper/kodama-root:/dev/hda1:Debian^GNU/Linux,^linux^2.6.24-1-amd64:/boot/vmlinuz-2.6.24-1-amd64:/boot/initrd.img-2.6.24-1-amd64:root=/dev/mapper/asterix-root^ro^quiet
+ cut -d : -f 2
+ LBOOT=/dev/hda1
+ echo /dev/mapper/kodama-root:/dev/hda1:Debian^GNU/Linux,^linux^2.6.24-1-amd64:/boot/vmlinuz-2.6.24-1-amd64:/boot/initrd.img-2.6.24-1-amd64:root=/dev/mapper/asterix-root^ro^quiet
+ cut -d : -f 3
+ tr ^  
+ LLABEL=Debian GNU/Linux, linux 2.6.24-1-amd64
+ echo /dev/mapper/kodama-root:/dev/hda1:Debian^GNU/Linux,^linux^2.6.24-1-amd64:/boot/vmlinuz-2.6.24-1-amd64:/boot/initrd.img-2.6.24-1-amd64:root=/dev/mapper/asterix-root^ro^quiet
+ cut -d : -f 4
+ LKERNEL=/boot/vmlinuz-2.6.24-1-amd64
+ echo /dev/mapper/kodama-root:/dev/hda1:Debian^GNU/Linux,^linux^2.6.24-1-amd64:/boot/vmlinuz-2.6.24-1-amd64:/boot/initrd.img-2.6.24-1-amd64:root=/dev/mapper/asterix-root^ro^quiet
+ cut -d : -f 5
+ LINITRD=/boot/initrd.img-2.6.24-1-amd64
+ echo /dev/mapper/kodama-root:/dev/hda1:Debian^GNU/Linux,^linux^2.6.24-1-amd64:/boot/vmlinuz-2.6.24-1-amd64:/boot/initrd.img-2.6.24-1-amd64:root=/dev/mapper/asterix-root^ro^quiet
+ cut -d : -f 6-
+ tr ^  
+ LPARAMS=root=/dev/mapper/asterix-root ro quiet
+ grub-probe --target=drive --device /dev/hda1
+ LINUXROOT=
dpkg: error processing grub-pc (--configure):
 subprocess post-installation script returned error exit status 1
Errors were encountered while processing:
 grub-pc
]0;~ [asterix]%                                                                               

~ > [asterix]


Script done on Wed 16 Apr 2008 14:09:25 CEST
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20080416/9282e23b/attachment.pgp 


More information about the Pkg-grub-devel mailing list