Bug#587838: grub-efi-ia32: grub-install makes system unbootable because no partmap module is included due to broken grub_probe --target=partmap

Vladimir 'φ-coder/phcoder' Serbinenko phcoder at gmail.com
Fri Jul 2 21:07:02 UTC 2010


On 07/02/2010 07:08 AM, Tino Keitel wrote:
> Package: grub-efi-ia32
> Version: 1.98+20100617-1
> Severity: normal
>
> grub-install does not include a partition layout module here, because the
> grub-probe call fails:
>
> + partmap_module=
> ++ /usr/sbin/grub-probe --target=partmap --device
> No path or device is specified.
> Try `/usr/sbin/grub-probe --help' for more information.
>
> The reason is that the call
> $grub_probe --target=partmap --device ${grub_device}
> fails because ${grub_device} never set in grub-install.  Of cause, the
> system won't boot anymore after this.  It looks like this has never worked
> and was never tested.
>
>   
It's a typical resync between pc and efi version.
Fixed upstream. Thanks
> Regards,
> Tino
>
> -- Package-specific info:
>
> *********************** BEGIN /proc/mounts
> /dev/root / ext3 rw,relatime,errors=remount-ro,data=writeback 0 0
> /dev/mapper/mac-home /home ext4 rw,relatime,barrier=1,data=ordered 0 0
> /dev/mapper/mac-usr /usr ext4 rw,relatime,barrier=1,data=ordered 0 0
> /dev/mapper/mac-var /var ext4 rw,relatime,barrier=1,data=ordered 0 0
> /dev/mapper/mac-crap /home/scorpion/src ext4 rw,relatime,barrier=1,data=ordered 0 0
> /dev/mapper/wd1-mythtv /home/mythtv xfs rw,relatime,attr2,noquota 0 0
> /dev/mapper/wd1-storage /home/storage xfs rw,relatime,attr2,noquota 0 0
> /dev/mapper/wd1-home /home/old xfs rw,relatime,attr2,noquota 0 0
> *********************** END /proc/mounts
>
> *********************** BEGIN /boot/grub/device.map
> (hd0)	/dev/sda
> (hd1)	/dev/sdb
> *********************** 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="1"
> 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
> }
> insmod lvm
> insmod part_gpt
> insmod ext2
> set root='(mac-usr)'
> search --no-floppy --fs-uuid --set 49fef8f7-b635-4ee5-8dc1-a1119ddb20c7
> if loadfont /share/grub/unicode.pf2 ; then
>   set gfxmode=640x480
>   insmod gfxterm
>   insmod efi_gop
> fi
> if terminal_output gfxterm ; then true ; else
>   # For backward compatibility with versions of terminal.mod that don't
>   # understand terminal_output
>   terminal gfxterm
> fi
> set timeout=1
> ### END /etc/grub.d/00_header ###
>
> ### BEGIN /etc/grub.d/03_efi-settings ###
> set F1=ctrl-x
> set F2=ctrl-c
> set F5=ctrl-e
>
> search --set -f /boot/vbios.bin
> insmod loadbios
> loadbios /boot/vbios.bin /boot/int10.bin
>
> ### END /etc/grub.d/03_efi-settings ###
>
> ### 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/06_MacOS_X ###
> menuentry "MacOSX" {
>   # Set the root device for Mac OS X's loader.
>   search --set -f /usr/standalone/i386/boot.efi
>   # Load the loader.
>   chainloader /usr/standalone/i386/boot.efi
> }
> ### END /etc/grub.d/06_MacOS_X ###
>
> ### BEGIN /etc/grub.d/07_default ###
> menuentry "Debian GNU/Linux, Linux kernel" {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	linux	/boot/default-kernel root=/dev/sda4 ro i915.modeset=1 gpt 
> }
> menuentry "Debian GNU/Linux, Linux kernel (recovery mode)" {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	linux	/boot/default-kernel root=/dev/sda4 ro single i915.modeset=1 gpt
> }
> ### END /etc/grub.d/07_default ###
>
> ### BEGIN /etc/grub.d/10_linux ###
> menuentry 'Debian GNU/Linux, with Linux 2.6.34-00001-g7adb552' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.34-00001-g7adb552 ...'
> 	linux	/boot/vmlinuz-2.6.34-00001-g7adb552 root=/dev/sda4 ro i915.modeset=1 gpt 
> }
> menuentry 'Debian GNU/Linux, with Linux 2.6.34-00001-g7adb552 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.34-00001-g7adb552 ...'
> 	linux	/boot/vmlinuz-2.6.34-00001-g7adb552 root=/dev/sda4 ro single i915.modeset=1 gpt
> }
> menuentry 'Debian GNU/Linux, with Linux 2.6.34-rc7-00057-g88c291c' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.34-rc7-00057-g88c291c ...'
> 	linux	/boot/vmlinuz-2.6.34-rc7-00057-g88c291c root=/dev/sda4 ro i915.modeset=1 gpt 
> }
> menuentry 'Debian GNU/Linux, with Linux 2.6.34-rc7-00057-g88c291c (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.34-rc7-00057-g88c291c ...'
> 	linux	/boot/vmlinuz-2.6.34-rc7-00057-g88c291c root=/dev/sda4 ro single i915.modeset=1 gpt
> }
> menuentry 'Debian GNU/Linux, with Linux 2.6.34-rc6-00202-g06c7317' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.34-rc6-00202-g06c7317 ...'
> 	linux	/boot/vmlinuz-2.6.34-rc6-00202-g06c7317 root=/dev/sda4 ro i915.modeset=1 gpt 
> }
> menuentry 'Debian GNU/Linux, with Linux 2.6.34-rc6-00202-g06c7317 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.34-rc6-00202-g06c7317 ...'
> 	linux	/boot/vmlinuz-2.6.34-rc6-00202-g06c7317 root=/dev/sda4 ro single i915.modeset=1 gpt
> }
> menuentry 'Debian GNU/Linux, with Linux 2.6.34-rc6-00064-gc87bb7e' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.34-rc6-00064-gc87bb7e ...'
> 	linux	/boot/vmlinuz-2.6.34-rc6-00064-gc87bb7e root=/dev/sda4 ro i915.modeset=1 gpt 
> }
> menuentry 'Debian GNU/Linux, with Linux 2.6.34-rc6-00064-gc87bb7e (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.34-rc6-00064-gc87bb7e ...'
> 	linux	/boot/vmlinuz-2.6.34-rc6-00064-gc87bb7e root=/dev/sda4 ro single i915.modeset=1 gpt
> }
> menuentry 'Debian GNU/Linux, with Linux 2.6.34-rc5-00064-g8eb3748' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.34-rc5-00064-g8eb3748 ...'
> 	linux	/boot/vmlinuz-2.6.34-rc5-00064-g8eb3748 root=/dev/sda4 ro i915.modeset=1 gpt 
> }
> menuentry 'Debian GNU/Linux, with Linux 2.6.34-rc5-00064-g8eb3748 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.34-rc5-00064-g8eb3748 ...'
> 	linux	/boot/vmlinuz-2.6.34-rc5-00064-g8eb3748 root=/dev/sda4 ro single i915.modeset=1 gpt
> }
> menuentry 'Debian GNU/Linux, with Linux 2.6.33.3' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.33.3 ...'
> 	linux	/boot/vmlinuz-2.6.33.3 root=/dev/sda4 ro i915.modeset=1 gpt 
> }
> menuentry 'Debian GNU/Linux, with Linux 2.6.33.3 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.33.3 ...'
> 	linux	/boot/vmlinuz-2.6.33.3 root=/dev/sda4 ro single i915.modeset=1 gpt
> }
> menuentry 'Debian GNU/Linux, with Linux 2.6.33.1' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.33.1 ...'
> 	linux	/boot/vmlinuz-2.6.33.1 root=/dev/sda4 ro i915.modeset=1 gpt 
> }
> menuentry 'Debian GNU/Linux, with Linux 2.6.33.1 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.33.1 ...'
> 	linux	/boot/vmlinuz-2.6.33.1 root=/dev/sda4 ro single i915.modeset=1 gpt
> }
> menuentry 'Debian GNU/Linux, with Linux 2.6.32.2' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.32.2 ...'
> 	linux	/boot/vmlinuz-2.6.32.2 root=/dev/sda4 ro i915.modeset=1 gpt 
> }
> menuentry 'Debian GNU/Linux, with Linux 2.6.32.2 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.32.2 ...'
> 	linux	/boot/vmlinuz-2.6.32.2 root=/dev/sda4 ro single i915.modeset=1 gpt
> }
> menuentry 'Debian GNU/Linux, with Linux 2.6.31.9' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.31.9 ...'
> 	linux	/boot/vmlinuz-2.6.31.9 root=/dev/sda4 ro i915.modeset=1 gpt 
> }
> menuentry 'Debian GNU/Linux, with Linux 2.6.31.9 (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
> 	insmod part_gpt
> 	insmod ext2
> 	set root='(hd0,gpt4)'
> 	search --no-floppy --fs-uuid --set d7f9e66b-8c88-4d3e-8f62-da0c2cc60adb
> 	echo	'Loading Linux 2.6.31.9 ...'
> 	linux	/boot/vmlinuz-2.6.31.9 root=/dev/sda4 ro single i915.modeset=1 gpt
> }
> ### END /etc/grub.d/10_linux ###
>
> ### BEGIN /etc/grub.d/20_memtest86 ###
> menuentry "Memory test (memtest86)" {
> 	linux16	/boot/memtest86.bin
> }
> ### END /etc/grub.d/20_memtest86 ###
>
> ### BEGIN /etc/grub.d/30_os-prober ###
> menuentry "Mac OS X (32-bit) (on /dev/sda2)" {
> 	insmod part_gpt
> 	insmod hfsplus
> 	set root='(hd0,gpt2)'
> 	search --no-floppy --fs-uuid --set 53ca7e0d47f4e6dd
>         insmod efi_gop
>         set do_resume=0
>         if [ /var/vm/sleepimage -nt10 / ]; then
>            if xnu_resume /var/vm/sleepimage; then
>              set do_resume=1
>            fi
>         fi
>         if [ $do_resume == 0 ]; then
>            xnu_uuid 53ca7e0d47f4e6dd uuid
>            if [ -f /Extra/DSDT.aml ]; then
>               acpi -e /Extra/DSDT.aml
>            fi
>            xnu_kernel /mach_kernel boot-uuid=${uuid} rd=*uuid
>            if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
>               xnu_mkext /System/Library/Extensions.mkext
>            else
>               xnu_kextdir /System/Library/Extensions
>            fi
>            if [ -f /Extra/Extensions.mkext ]; then
>               xnu_mkext /Extra/Extensions.mkext
>            fi
>            if [ -d /Extra/Extensions ]; then
>               xnu_kextdir /Extra/Extensions
>            fi
>            if [ -f /Extra/devprop.bin ]; then
>               xnu_devprop_load /Extra/devprop.bin
>            fi
>            if [ -f /Extra/splash.jpg ]; then
>               insmod jpeg
>               xnu_splash /Extra/splash.jpg
>            fi
>            if [ -f /Extra/splash.png ]; then
>               insmod png
>               xnu_splash /Extra/splash.png
>            fi
>            if [ -f /Extra/splash.tga ]; then
>               insmod tga
>               xnu_splash /Extra/splash.tga
>            fi
>         fi
> }
> menuentry "Mac OS X (64-bit) (on /dev/sda2)" {
> 	insmod part_gpt
> 	insmod hfsplus
> 	set root='(hd0,gpt2)'
> 	search --no-floppy --fs-uuid --set 53ca7e0d47f4e6dd
>         insmod efi_gop
>         set do_resume=0
>         if [ /var/vm/sleepimage -nt10 / ]; then
>            if xnu_resume /var/vm/sleepimage; then
>              set do_resume=1
>            fi
>         fi
>         if [ $do_resume == 0 ]; then
>            xnu_uuid 53ca7e0d47f4e6dd uuid
>            if [ -f /Extra/DSDT.aml ]; then
>               acpi -e /Extra/DSDT.aml
>            fi
>            xnu_kernel64 /mach_kernel boot-uuid=${uuid} rd=*uuid
>            if [ /System/Library/Extensions.mkext -nt /System/Library/Extensions ]; then
>               xnu_mkext /System/Library/Extensions.mkext
>            else
>               xnu_kextdir /System/Library/Extensions
>            fi
>            if [ -f /Extra/Extensions.mkext ]; then
>               xnu_mkext /Extra/Extensions.mkext
>            fi
>            if [ -d /Extra/Extensions ]; then
>               xnu_kextdir /Extra/Extensions
>            fi
>            if [ -f /Extra/devprop.bin ]; then
>               xnu_devprop_load /Extra/devprop.bin
>            fi
>            if [ -f /Extra/splash.jpg ]; then
>               insmod jpeg
>               xnu_splash /Extra/splash.jpg
>            fi
>            if [ -f /Extra/splash.png ]; then
>               insmod png
>               xnu_splash /Extra/splash.png
>            fi
>            if [ -f /Extra/splash.tga ]; then
>               insmod tga
>               xnu_splash /Extra/splash.tga
>            fi
>         fi
> }
> ### 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
>
> -- System Information:
> Debian Release: squeeze/sid
>   APT prefers unstable
>   APT policy: (500, 'unstable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 2.6.34-00001-g7adb552 (SMP w/2 CPU cores)
> Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/bash
>
> Versions of packages grub-efi-ia32 depends on:
> ii  debconf [debconf-2.0]    1.5.32          Debian configuration management sy
> ii  grub-common              1.98+20100617-1 GRand Unified Bootloader, version 
> ii  ucf                      3.0025          Update Configuration File: preserv
>
> grub-efi-ia32 recommends no packages.
>
> Versions of packages grub-efi-ia32 suggests:
> pn  efibootmgr                    <none>     (no description available)
> ii  os-prober                     1.39       utility to detect other OSes on a 
>
> -- debconf information:
>   grub2/kfreebsd_cmdline:
> * grub2/linux_cmdline: i915.modeset=1 gpt
>   grub2/kfreebsd_cmdline_default: quiet
> * grub2/linux_cmdline_default:
>
>
>
> _______________________________________________
> Pkg-grub-devel mailing list
> Pkg-grub-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/pkg-grub-devel
>
>   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 294 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20100702/83a92c96/attachment.pgp>


More information about the Pkg-grub-devel mailing list