Bug#646415: grub-ieee1275: system hang on G4 cube when running /usr/bin/os-prober (triggered during update-grub)

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Oct 24 01:32:30 UTC 2011


Package: grub-ieee1275
Version: 1.99-12
Severity: important

i found that update-grub was hanging this G4 cube while running
linux-image-3.0.0-2-powerpc and 3.0.0-2-powerpc-smp.

using sh -x, i was able to track it down to an invocation of os-prober:


0 togrul:~# sh -x /usr/bin/os-prober 
+ set -e
+ . /usr/share/os-prober/common.sh
++ cleanup_tmpdir=false
++ cleanup_ro_partitions=
++ progname=
++ type mapdevfs
+ newns
+ '[' '' ']'
+ exec /usr/lib/os-prober/newns /usr/bin/os-prober


at which point the machine hangs -- mouse is unresponsive, video
terminal doesn't update, nothing over the network.

My current workaround is to add the following line to /etc/default/grub:

GRUB_DISABLE_OS_PROBER=true

But the system shouldn't just hang in regular operation like this.

i'd be happy to supply more debugging information or diagnostics.
Please let me know what you'd like to see.

Thanks for maintaining grub in debian!

Regards,

	--dkg

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/disk/by-uuid/dca56d69-14fe-457b-90bb-95d49692ff60 / ext3 rw,relatime,errors=remount-ro,barrier=0,data=ordered 0 0
/dev/mapper/vg_togrul0-debusr /usr ext3 rw,relatime,errors=continue,barrier=0,data=ordered 0 0
/dev/mapper/vg_togrul0-debvar /var ext3 rw,relatime,errors=continue,barrier=0,data=ordered 0 0
/dev/mapper/vg_togrul0-home /home ext3 rw,nosuid,nodev,relatime,errors=continue,barrier=0,data=ordered 0 0
/dev/mapper/vg_togrul0-sidchroot /srv/sidchroot ext3 rw,relatime,errors=continue,barrier=0,data=ordered 0 0
/dev/sda4 /boot/grub hfs rw,nosuid,nodev,noexec,relatime,uid=0,gid=0 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-QUANTUM_FIREBALLP_LM30_186006434617
*********************** END /boot/grub/device.map

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

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  insmod ieee1275_fb
}

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, with Linux 3.0.0-2-powerpc-smp' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod part_apple
	insmod ext2
	set root='(/dev/sda,apple3)'
	search --no-floppy --fs-uuid --set=root dca56d69-14fe-457b-90bb-95d49692ff60
	echo	'Loading Linux 3.0.0-2-powerpc-smp ...'
	linux	/boot/vmlinux-3.0.0-2-powerpc-smp root=UUID=dca56d69-14fe-457b-90bb-95d49692ff60 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.0.0-2-powerpc-smp
}
menuentry 'Debian GNU/Linux, with Linux 3.0.0-2-powerpc-smp (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod part_apple
	insmod ext2
	set root='(/dev/sda,apple3)'
	search --no-floppy --fs-uuid --set=root dca56d69-14fe-457b-90bb-95d49692ff60
	echo	'Loading Linux 3.0.0-2-powerpc-smp ...'
	linux	/boot/vmlinux-3.0.0-2-powerpc-smp root=UUID=dca56d69-14fe-457b-90bb-95d49692ff60 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.0.0-2-powerpc-smp
}
menuentry 'Debian GNU/Linux, with Linux 3.0.0-2-powerpc' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod part_apple
	insmod ext2
	set root='(/dev/sda,apple3)'
	search --no-floppy --fs-uuid --set=root dca56d69-14fe-457b-90bb-95d49692ff60
	echo	'Loading Linux 3.0.0-2-powerpc ...'
	linux	/boot/vmlinux-3.0.0-2-powerpc root=UUID=dca56d69-14fe-457b-90bb-95d49692ff60 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.0.0-2-powerpc
}
menuentry 'Debian GNU/Linux, with Linux 3.0.0-2-powerpc (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod part_apple
	insmod ext2
	set root='(/dev/sda,apple3)'
	search --no-floppy --fs-uuid --set=root dca56d69-14fe-457b-90bb-95d49692ff60
	echo	'Loading Linux 3.0.0-2-powerpc ...'
	linux	/boot/vmlinux-3.0.0-2-powerpc root=UUID=dca56d69-14fe-457b-90bb-95d49692ff60 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-3.0.0-2-powerpc
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38-2-powerpc' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod part_apple
	insmod ext2
	set root='(/dev/sda,apple3)'
	search --no-floppy --fs-uuid --set=root dca56d69-14fe-457b-90bb-95d49692ff60
	echo	'Loading Linux 2.6.38-2-powerpc ...'
	linux	/boot/vmlinux-2.6.38-2-powerpc root=UUID=dca56d69-14fe-457b-90bb-95d49692ff60 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.38-2-powerpc
}
menuentry 'Debian GNU/Linux, with Linux 2.6.38-2-powerpc (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod part_apple
	insmod ext2
	set root='(/dev/sda,apple3)'
	search --no-floppy --fs-uuid --set=root dca56d69-14fe-457b-90bb-95d49692ff60
	echo	'Loading Linux 2.6.38-2-powerpc ...'
	linux	/boot/vmlinux-2.6.38-2-powerpc root=UUID=dca56d69-14fe-457b-90bb-95d49692ff60 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.38-2-powerpc
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-vserver-powerpc' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod part_apple
	insmod ext2
	set root='(/dev/sda,apple3)'
	search --no-floppy --fs-uuid --set=root dca56d69-14fe-457b-90bb-95d49692ff60
	echo	'Loading Linux 2.6.32-5-vserver-powerpc ...'
	linux	/boot/vmlinux-2.6.32-5-vserver-powerpc root=UUID=dca56d69-14fe-457b-90bb-95d49692ff60 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-vserver-powerpc
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-vserver-powerpc (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod part_apple
	insmod ext2
	set root='(/dev/sda,apple3)'
	search --no-floppy --fs-uuid --set=root dca56d69-14fe-457b-90bb-95d49692ff60
	echo	'Loading Linux 2.6.32-5-vserver-powerpc ...'
	linux	/boot/vmlinux-2.6.32-5-vserver-powerpc root=UUID=dca56d69-14fe-457b-90bb-95d49692ff60 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-vserver-powerpc
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-powerpc' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod part_apple
	insmod ext2
	set root='(/dev/sda,apple3)'
	search --no-floppy --fs-uuid --set=root dca56d69-14fe-457b-90bb-95d49692ff60
	echo	'Loading Linux 2.6.32-5-powerpc ...'
	linux	/boot/vmlinux-2.6.32-5-powerpc root=UUID=dca56d69-14fe-457b-90bb-95d49692ff60 ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-powerpc
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-powerpc (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	insmod gzio
	insmod part_apple
	insmod ext2
	set root='(/dev/sda,apple3)'
	search --no-floppy --fs-uuid --set=root dca56d69-14fe-457b-90bb-95d49692ff60
	echo	'Loading Linux 2.6.32-5-powerpc ...'
	linux	/boot/vmlinux-2.6.32-5-powerpc root=UUID=dca56d69-14fe-457b-90bb-95d49692ff60 ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/boot/initrd.img-2.6.32-5-powerpc
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

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

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
*********************** END /boot/grub/grub.cfg

*********************** BEGIN /proc/mdstat
cat: /proc/mdstat: No such file or directory
*********************** END /proc/mdstat

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Oct 23 16:22 ata-UQNAUT_MIFERABLL_PML03_810660346471 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 23 16:22 ata-UQNAUT_MIFERABLL_PML03_810660346471-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 23 16:22 ata-UQNAUT_MIFERABLL_PML03_810660346471-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct 23 16:22 ata-UQNAUT_MIFERABLL_PML03_810660346471-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Oct 23 16:22 ata-UQNAUT_MIFERABLL_PML03_810660346471-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Oct 23 16:22 ata-UQNAUT_MIFERABLL_PML03_810660346471-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Oct 23 16:22 ata-UQNAUT_MIFERABLL_PML03_810660346471-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Oct 23 16:22 ata-UQNAUT_MIFERABLL_PML03_810660346471-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Oct 23 16:22 ata-UQNAUT_MIFERABLL_PML03_810660346471-part8 -> ../../sda8
lrwxrwxrwx 1 root root 10 Oct 23 16:22 dm-name-vg_togrul0-debusr -> ../../dm-0
lrwxrwxrwx 1 root root 10 Oct 23 16:22 dm-name-vg_togrul0-debvar -> ../../dm-1
lrwxrwxrwx 1 root root 10 Oct 23 16:22 dm-name-vg_togrul0-home -> ../../dm-2
lrwxrwxrwx 1 root root 10 Oct 23 16:22 dm-name-vg_togrul0-sidchroot -> ../../dm-3
lrwxrwxrwx 1 root root 10 Oct 23 16:22 dm-name-vg_togrul0-vtest -> ../../dm-4
lrwxrwxrwx 1 root root 10 Oct 23 16:22 dm-uuid-LVM-Fwv5OG4TFd8KyXTktY48RERzMWPsdWBd7Jk6BRmyrnX3VAgnAUi3GwfsmQQbZtPK -> ../../dm-4
lrwxrwxrwx 1 root root 10 Oct 23 16:22 dm-uuid-LVM-Fwv5OG4TFd8KyXTktY48RERzMWPsdWBdAVGsLk23F4oY3k9I69AVHIrkpNj4Fa7s -> ../../dm-1
lrwxrwxrwx 1 root root 10 Oct 23 16:22 dm-uuid-LVM-Fwv5OG4TFd8KyXTktY48RERzMWPsdWBdFmZ7GDzr2Ci23XneN3h7YeujPz5o0mrI -> ../../dm-3
lrwxrwxrwx 1 root root 10 Oct 23 16:22 dm-uuid-LVM-Fwv5OG4TFd8KyXTktY48RERzMWPsdWBdQ48dtg9zuQIX4gc7G2HaSbbtPgxtbnOt -> ../../dm-0
lrwxrwxrwx 1 root root 10 Oct 23 16:22 dm-uuid-LVM-Fwv5OG4TFd8KyXTktY48RERzMWPsdWBdc7qdJ6dV3g313i6l9ONoxPjbC1LsS11U -> ../../dm-2
lrwxrwxrwx 1 root root  9 Oct 23 16:22 scsi-SATA_QUANTUM_FIREBAL186006434617 -> ../../sda
lrwxrwxrwx 1 root root 10 Oct 23 16:22 scsi-SATA_QUANTUM_FIREBAL186006434617-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 23 16:22 scsi-SATA_QUANTUM_FIREBAL186006434617-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct 23 16:22 scsi-SATA_QUANTUM_FIREBAL186006434617-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Oct 23 16:22 scsi-SATA_QUANTUM_FIREBAL186006434617-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Oct 23 16:22 scsi-SATA_QUANTUM_FIREBAL186006434617-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Oct 23 16:22 scsi-SATA_QUANTUM_FIREBAL186006434617-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Oct 23 16:22 scsi-SATA_QUANTUM_FIREBAL186006434617-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Oct 23 16:22 scsi-SATA_QUANTUM_FIREBAL186006434617-part8 -> ../../sda8
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Oct 23 16:22 17088b17-fbbe-4c73-9d95-7e3b5fe13786 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Oct 23 16:22 47bb0c32-0830-3e73-b56a-3ce7caf2e453 -> ../../sda4
lrwxrwxrwx 1 root root 10 Oct 23 16:22 6b9e2487-e1c9-4797-b074-7d7ac3900417 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Oct 23 16:22 8b38f8f2-5da9-4261-b4e1-002df8769229 -> ../../dm-0
lrwxrwxrwx 1 root root 10 Oct 23 16:22 b15a48d0-347c-4cf5-94cc-a3309f942243 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Oct 23 16:22 dacf9593-d408-4b06-84b9-fd7dcd50df85 -> ../../sda6
lrwxrwxrwx 1 root root 10 Oct 23 16:22 dca56d69-14fe-457b-90bb-95d49692ff60 -> ../../sda3
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: 6.0.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable'), (80, 'unstable')
Architecture: powerpc (ppc)

Kernel: Linux 3.0.0-2-powerpc-smp (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-ieee1275 depends on:
ii  debconf [debconf-2.0]        1.5.36.1    Debian configuration management sy
ii  grub-common                  1.99-12     GRand Unified Bootloader (common f
ii  grub-ieee1275-bin            1.99-12     GRand Unified Bootloader, version 
ii  grub2-common                 1.99-12     GRand Unified Bootloader (common f
ii  ucf                          3.0025+nmu1 Update Configuration File: preserv

grub-ieee1275 recommends no packages.

grub-ieee1275 suggests no packages.

-- Configuration Files:
/etc/kernel/postinst.d/zz-update-grub changed [not included]

-- debconf information excluded





More information about the Pkg-grub-devel mailing list