Bug#427492: grub-efi: bless equivalent for Linux

Michal Suchanek <hramrach@centrum.cz> michal.suchanek at ruk.cuni.cz
Tue May 12 17:47:45 UTC 2009


Package: grub-efi
Version: 1.96+20080724-16
Followup-For: Bug #427492


I can confirm that this is a problem. Just installing grub is not
sufficient to boot.

I am using this method: 

1) load GRUB from the OSX partition
2) load GRUB from the Linux partition using the grub installed on the
hfsplus partition.

Perhaps in 2) I could just load the Debian configuration file. Since the
Debian grub is broken after some upgrade it might be a good idea to set
up booting this way to avoid future problems.

It must be possible to "bless" a disk without modifications to the
NVRAM because bootable CDs and disks can be swapped between systems,
connected to different buses (IDE/USB/FireWire), etc.

Unfortunately I cannot point to a piece of documentation describing how
this is done. In fact I was even unable to bless grub installed in the
EFI partition.

On the other hand, this does not really require reverse-engeneering as
the OS X system base is Darwin which is opensource.

Thanks

Michal

-- Package-specific info:

*********************** WARNING grub-setup left core.img in filesystem

*********************** BEGIN /proc/mounts
/dev/sda4 / ext3 rw,noatime,errors=remount-ro,data=ordered 0 0
/dev/sda2 /Xroot hfsplus ro,nosuid,nodev,umask=22,uid=0,gid=0,nls=utf8 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 /usr/sbin/update-grub using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
terminal console
### 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_hurd ###
### END /etc/grub.d/10_hurd ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Debian GNU/Linux, linux 2.6.29-macmini" {
	set root=
	linux	/boot/vmlinuz-2.6.29-macmini root=/dev/scsi/sdh2-3c0i0l0p4 ro video=efifb fbcon=rotate:1 
	initrd	/boot/initrd.img-2.6.29-macmini
}
menuentry "Debian GNU/Linux, linux 2.6.29-macmini (single-user mode)" {
	set root=
	linux	/boot/vmlinuz-2.6.29-macmini root=/dev/scsi/sdh2-3c0i0l0p4 ro single video=efifb fbcon=rotate:1
	initrd	/boot/initrd.img-2.6.29-macmini
}
menuentry "Debian GNU/Linux, linux 2.6.28-macmini" {
	set root=
	linux	/boot/vmlinuz-2.6.28-macmini root=/dev/scsi/sdh2-3c0i0l0p4 ro video=efifb fbcon=rotate:1 
	initrd	/boot/initrd.img-2.6.28-macmini
}
menuentry "Debian GNU/Linux, linux 2.6.28-macmini (single-user mode)" {
	set root=
	linux	/boot/vmlinuz-2.6.28-macmini root=/dev/scsi/sdh2-3c0i0l0p4 ro single video=efifb fbcon=rotate:1
	initrd	/boot/initrd.img-2.6.28-macmini
}
menuentry "Debian GNU/Linux, linux 2.6.28-rc7-macmini" {
	set root=
	linux	/boot/vmlinuz-2.6.28-rc7-macmini root=/dev/scsi/sdh2-3c0i0l0p4 ro video=efifb fbcon=rotate:1 
	initrd	/boot/initrd.img-2.6.28-rc7-macmini
}
menuentry "Debian GNU/Linux, linux 2.6.28-rc7-macmini (single-user mode)" {
	set root=
	linux	/boot/vmlinuz-2.6.28-rc7-macmini root=/dev/scsi/sdh2-3c0i0l0p4 ro single video=efifb fbcon=rotate:1
	initrd	/boot/initrd.img-2.6.28-rc7-macmini
}
menuentry "Debian GNU/Linux, linux 2.6.28-rc6-minimacmacmini" {
	set root=
	linux	/boot/vmlinuz-2.6.28-rc6-minimacmacmini root=/dev/scsi/sdh2-3c0i0l0p4 ro video=efifb fbcon=rotate:1 
	initrd	/boot/initrd.img-2.6.28-rc6-minimacmacmini
}
menuentry "Debian GNU/Linux, linux 2.6.28-rc6-minimacmacmini (single-user mode)" {
	set root=
	linux	/boot/vmlinuz-2.6.28-rc6-minimacmacmini root=/dev/scsi/sdh2-3c0i0l0p4 ro single video=efifb fbcon=rotate:1
	initrd	/boot/initrd.img-2.6.28-rc6-minimacmacmini
}
menuentry "Debian GNU/Linux, linux 2.6.27-1-686" {
	set root=
	linux	/boot/vmlinuz-2.6.27-1-686 root=/dev/scsi/sdh2-3c0i0l0p4 ro video=efifb fbcon=rotate:1 
	initrd	/boot/initrd.img-2.6.27-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.27-1-686 (single-user mode)" {
	set root=
	linux	/boot/vmlinuz-2.6.27-1-686 root=/dev/scsi/sdh2-3c0i0l0p4 ro single video=efifb fbcon=rotate:1
	initrd	/boot/initrd.img-2.6.27-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.26-2-686" {
	set root=
	linux	/boot/vmlinuz-2.6.26-2-686 root=/dev/scsi/sdh2-3c0i0l0p4 ro video=efifb fbcon=rotate:1 
	initrd	/boot/initrd.img-2.6.26-2-686
}
menuentry "Debian GNU/Linux, linux 2.6.26-2-686 (single-user mode)" {
	set root=
	linux	/boot/vmlinuz-2.6.26-2-686 root=/dev/scsi/sdh2-3c0i0l0p4 ro single video=efifb fbcon=rotate:1
	initrd	/boot/initrd.img-2.6.26-2-686
}
menuentry "Debian GNU/Linux, linux 2.6.26-1-686" {
	set root=
	linux	/boot/vmlinuz-2.6.26-1-686 root=/dev/scsi/sdh2-3c0i0l0p4 ro video=efifb fbcon=rotate:1 
	initrd	/boot/initrd.img-2.6.26-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.26-1-686 (single-user mode)" {
	set root=
	linux	/boot/vmlinuz-2.6.26-1-686 root=/dev/scsi/sdh2-3c0i0l0p4 ro single video=efifb fbcon=rotate:1
	initrd	/boot/initrd.img-2.6.26-1-686
}
menuentry "Debian GNU/Linux, linux 2.6.26macmini" {
	set root=
	linux	/boot/vmlinuz-2.6.26macmini root=/dev/scsi/sdh2-3c0i0l0p4 ro video=efifb fbcon=rotate:1 
	initrd	/boot/initrd.img-2.6.26macmini
}
menuentry "Debian GNU/Linux, linux 2.6.26macmini (single-user mode)" {
	set root=
	linux	/boot/vmlinuz-2.6.26macmini root=/dev/scsi/sdh2-3c0i0l0p4 ro single video=efifb fbcon=rotate:1
	initrd	/boot/initrd.img-2.6.26macmini
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/25_local ###
menuentry "OS X" {
chainloader (hd0,2)/usr/standalone/i386/boot.efi
}
menuentry "OS X (verbose)" {
chainloader (hd0,2)/usr/standalone/i386/boot.efi -- -v
}
menuentry "reFit" {
chainloader (hd0,2)/efi/refit/refit.efi
}
menuentry "GNU/Linux (auto)" {
  # Set the root device for GNU/Linux.
  search --set /boot/vmlinuz
  # Load the kernel and initrd.
  linux /boot/vmlinuz video=imacfb:mini acpi=force libata.atapi_enabled=1 init=/linuxrc root=/dev/ram0 pcboot=cdrom gpt
  initrd /boot/initrd.img
}
menuentry "Debian" {
  # Set the root device for Linux.
  root=(hd0,4)
  # Load the loader.
  linux /boot/vmlinuz root=/dev/sda3 video=imacfb:mini agp=off
  initrd /boot/initrd.img
}
menuentry "Boot from MBR" {
appleloader HD
}
menuentry "Boot from CD" {
appleloader CD
}
menuentry "Boot from USB" {
appleloader USB
}
### END /etc/grub.d/25_local ###

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

### BEGIN /etc/grub.d/40_custom ###
# This file is an example on how to add custom entries
### END /etc/grub.d/40_custom ###
*********************** END /boot/grub/grub.cfg

-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (900, 'stable'), (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.29-macmini (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grub-efi depends on:
ii  grub-common             1.96+20080724-16 GRand Unified Bootloader, version 
ii  libc6                   2.7-18           GNU C Library: Shared libraries

grub-efi recommends no packages.

Versions of packages grub-efi suggests:
pn  os-prober                     <none>     (no description available)

-- no debconf information





More information about the Pkg-grub-devel mailing list