Bug#737999: grub-ieee1275: Fails to boot linux on my PowerPC-based Mac Mini, complains about "incompatible license"

Nicolas Boullis nboullis at debian.org
Fri Feb 7 12:50:41 UTC 2014


Package: grub-ieee1275
Version: 1.99-27+deb7u2
Severity: important

Dear Maintainer,

I recently upgraded my PowerPC-based Mac Mini from Squeeze to Wheezy.
Unfortunately, grub fails to boot linux, complaining about "incompatible 
licence".
Squeeze’s grub-ieee1275 1.98+20100804-14+squeeze1 works fine.

Grub is installed on my system with:
  grub-mkimage -c grub_minimal.cfg -o /tmp/grub -O powerpc-ieee1275 ext2.mod part_apple.mod normal.mod search.mod search_fs_uuid.mod
Then the grub image is installed to the IEEE1275 bootstrap partition.

My grub_minimal.cfg configuration file contains:
| search --no-floppy --fs-uuid --set=root b431cd5c-6711-4b51-8b45-bfc1a70909b4
| set prefix=($root)/boot/grub
| normal

The first stage seems to work fine, since I get the boot menu as 
expected.

Please feel free to ask details about my setup.

Regards,

-- 
Nicolas Boullis

-- Package-specific info:

*********************** BEGIN /proc/mounts
/dev/mapper/irma-ROOT / ext3 rw,relatime,errors=remount-ro,barrier=1,data=ordered 0 0
/dev/sda3 /boot ext3 rw,relatime,errors=continue,barrier=1,data=ordered 0 0
/dev/mapper/irma-HOME /home ext4 rw,relatime,user_xattr,acl,barrier=1,data=ordered 0 0
/dev/mapper/irma-USR /usr ext3 rw,relatime,errors=continue,barrier=1,data=ordered 0 0
/dev/mapper/irma-VAR /var ext3 rw,relatime,errors=continue,barrier=1,data=ordered 0 0
*********************** END /proc/mounts

*********************** BEGIN /boot/grub/device.map
(hd0)	/dev/disk/by-id/ata-ST9808210A_3LF0BTBS
*********************** 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
}

terminal_input console
terminal_output console
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.2.0-0.bpo.4-powerpc' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod part_apple
	insmod ext2
	set root='(/dev/sda,apple3)'
	search --no-floppy --fs-uuid --set=root b431cd5c-6711-4b51-8b45-bfc1a70909b4
	echo	'Loading Linux 3.2.0-0.bpo.4-powerpc ...'
	linux	/vmlinux-3.2.0-0.bpo.4-powerpc root=/dev/mapper/irma-ROOT ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-3.2.0-0.bpo.4-powerpc
}
menuentry 'Debian GNU/Linux, with Linux 3.2.0-0.bpo.4-powerpc (recovery mode)' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod part_apple
	insmod ext2
	set root='(/dev/sda,apple3)'
	search --no-floppy --fs-uuid --set=root b431cd5c-6711-4b51-8b45-bfc1a70909b4
	echo	'Loading Linux 3.2.0-0.bpo.4-powerpc ...'
	linux	/vmlinux-3.2.0-0.bpo.4-powerpc root=/dev/mapper/irma-ROOT ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-3.2.0-0.bpo.4-powerpc
}
menuentry 'Debian GNU/Linux, with Linux 2.6.32-5-powerpc' --class debian --class gnu-linux --class gnu --class os {
	load_video
	insmod gzio
	insmod part_apple
	insmod ext2
	set root='(/dev/sda,apple3)'
	search --no-floppy --fs-uuid --set=root b431cd5c-6711-4b51-8b45-bfc1a70909b4
	echo	'Loading Linux 2.6.32-5-powerpc ...'
	linux	/vmlinux-2.6.32-5-powerpc root=/dev/mapper/irma-ROOT ro  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/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 {
	load_video
	insmod gzio
	insmod part_apple
	insmod ext2
	set root='(/dev/sda,apple3)'
	search --no-floppy --fs-uuid --set=root b431cd5c-6711-4b51-8b45-bfc1a70909b4
	echo	'Loading Linux 2.6.32-5-powerpc ...'
	linux	/vmlinux-2.6.32-5-powerpc root=/dev/mapper/irma-ROOT ro single 
	echo	'Loading initial ramdisk ...'
	initrd	/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 LVM
  --- Volume group ---
  VG Name               irma
  System ID             
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  32
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                6
  Open LV               5
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               63.53 GiB
  PE Size               4.00 MiB
  Total PE              16263
  Alloc PE / Size       13056 / 51.00 GiB
  Free  PE / Size       3207 / 12.53 GiB
  VG UUID               BAj6pI-6N2i-v36c-je6W-s21Y-8BtI-c8i9QB
   
  --- Physical volume ---
  PV Name               /dev/sda7
  VG Name               irma
  PV Size               27.61 GiB / not usable 1.13 MiB
  Allocatable           yes 
  PE Size               4.00 MiB
  Total PE              7068
  Free PE               2716
  Allocated PE          4352
  PV UUID               8vWMRg-Sw0B-DCtL-qLld-wnOl-lwlc-Cgt5It
   
  --- Physical volume ---
  PV Name               /dev/sda5
  VG Name               irma
  PV Size               35.92 GiB / not usable 998.00 KiB
  Allocatable           yes 
  PE Size               4.00 MiB
  Total PE              9195
  Free PE               491
  Allocated PE          8704
  PV UUID               41uyf9-RCBj-ZlF8-cJdK-s1wg-vrJX-Ny6zid
   
  --- Logical volume ---
  LV Path                /dev/irma/SWAP
  LV Name                SWAP
  VG Name                irma
  LV UUID                0z3hti-Qls9-8Z0X-5Gf2-OT39-vH4g-QfYKab
  LV Write Access        read/write
  LV Creation host, time , 
  LV Status              available
  # open                 2
  LV Size                1.00 GiB
  Current LE             256
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:1
   
  --- Logical volume ---
  LV Path                /dev/irma/USR
  LV Name                USR
  VG Name                irma
  LV UUID                ptTVpB-mz9m-hN4S-FTPT-zB6I-8tHs-RVrqN4
  LV Write Access        read/write
  LV Creation host, time , 
  LV Status              available
  # open                 1
  LV Size                10.00 GiB
  Current LE             2560
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:2
   
  --- Logical volume ---
  LV Path                /dev/irma/VAR
  LV Name                VAR
  VG Name                irma
  LV UUID                sOMKob-AV0g-NQ2y-1jmE-IJ9u-H1gN-CVx9ub
  LV Write Access        read/write
  LV Creation host, time , 
  LV Status              available
  # open                 1
  LV Size                5.00 GiB
  Current LE             1280
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:3
   
  --- Logical volume ---
  LV Path                /dev/irma/ROOT
  LV Name                ROOT
  VG Name                irma
  LV UUID                MlKePH-F6zP-U5di-mfeu-e3bD-2MZA-fAYcjI
  LV Write Access        read/write
  LV Creation host, time , 
  LV Status              available
  # open                 1
  LV Size                1.00 GiB
  Current LE             256
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:0
   
  --- Logical volume ---
  LV Path                /dev/irma/oldHome
  LV Name                oldHome
  VG Name                irma
  LV UUID                NM3qFG-Ft5M-b5Mz-8hQ3-bDAM-7EgN-XZVN04
  LV Write Access        read/write
  LV Creation host, time , 
  LV Status              available
  # open                 0
  LV Size                17.00 GiB
  Current LE             4352
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:4
   
  --- Logical volume ---
  LV Path                /dev/irma/HOME
  LV Name                HOME
  VG Name                irma
  LV UUID                OqHthw-ahSe-7MVQ-1wT0-E6Z5-4xq1-dmpOYx
  LV Write Access        read/write
  LV Creation host, time , 
  LV Status              available
  # open                 1
  LV Size                17.00 GiB
  Current LE             4352
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           254:5
   
*********************** END LVM

*********************** BEGIN /dev/disk/by-id
total 0
lrwxrwxrwx 1 root root  9 Feb  7 12:15 ata-AMSTIHATDCR-_WC_-W1842 -> ../../sr0
lrwxrwxrwx 1 root root  9 Feb  7 12:15 ata-TS898012A0_L30FTBSB -> ../../sda
lrwxrwxrwx 1 root root 10 Feb  7 12:15 ata-TS898012A0_L30FTBSB-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb  7 12:15 ata-TS898012A0_L30FTBSB-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Feb  7 12:15 ata-TS898012A0_L30FTBSB-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Feb  7 12:15 ata-TS898012A0_L30FTBSB-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Feb  7 12:15 ata-TS898012A0_L30FTBSB-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Feb  7 12:15 ata-TS898012A0_L30FTBSB-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Feb  7 12:15 ata-TS898012A0_L30FTBSB-part7 -> ../../sda7
lrwxrwxrwx 1 root root 10 Feb  7 12:15 dm-name-irma-HOME -> ../../dm-5
lrwxrwxrwx 1 root root 10 Feb  7 12:15 dm-name-irma-ROOT -> ../../dm-0
lrwxrwxrwx 1 root root 10 Feb  7 12:15 dm-name-irma-SWAP -> ../../dm-1
lrwxrwxrwx 1 root root 10 Feb  7 12:15 dm-name-irma-USR -> ../../dm-2
lrwxrwxrwx 1 root root 10 Feb  7 12:15 dm-name-irma-VAR -> ../../dm-3
lrwxrwxrwx 1 root root 10 Feb  7 12:15 dm-name-irma-oldHome -> ../../dm-4
lrwxrwxrwx 1 root root 10 Feb  7 12:15 dm-uuid-LVM-BAj6pI6N2iv36cje6Ws21Y8BtIc8i9QB0z3htiQls98Z0X5Gf2OT39vH4gQfYKab -> ../../dm-1
lrwxrwxrwx 1 root root 10 Feb  7 12:15 dm-uuid-LVM-BAj6pI6N2iv36cje6Ws21Y8BtIc8i9QBMlKePHF6zPU5dimfeue3bD2MZAfAYcjI -> ../../dm-0
lrwxrwxrwx 1 root root 10 Feb  7 12:15 dm-uuid-LVM-BAj6pI6N2iv36cje6Ws21Y8BtIc8i9QBNM3qFGFt5Mb5Mz8hQ3bDAM7EgNXZVN04 -> ../../dm-4
lrwxrwxrwx 1 root root 10 Feb  7 12:15 dm-uuid-LVM-BAj6pI6N2iv36cje6Ws21Y8BtIc8i9QBOqHthwahSe7MVQ1wT0E6Z54xq1dmpOYx -> ../../dm-5
lrwxrwxrwx 1 root root 10 Feb  7 12:15 dm-uuid-LVM-BAj6pI6N2iv36cje6Ws21Y8BtIc8i9QBptTVpBmz9mhN4SFTPTzB6I8tHsRVrqN4 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Feb  7 12:15 dm-uuid-LVM-BAj6pI6N2iv36cje6Ws21Y8BtIc8i9QBsOMKobAV0gNQ2y1jmEIJ9uH1gNCVx9ub -> ../../dm-3
lrwxrwxrwx 1 root root  9 Feb  7 12:15 scsi-SATA_ST9808210A_3LF0BTBS -> ../../sda
lrwxrwxrwx 1 root root 10 Feb  7 12:15 scsi-SATA_ST9808210A_3LF0BTBS-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 Feb  7 12:15 scsi-SATA_ST9808210A_3LF0BTBS-part2 -> ../../sda2
lrwxrwxrwx 1 root root 10 Feb  7 12:15 scsi-SATA_ST9808210A_3LF0BTBS-part3 -> ../../sda3
lrwxrwxrwx 1 root root 10 Feb  7 12:15 scsi-SATA_ST9808210A_3LF0BTBS-part4 -> ../../sda4
lrwxrwxrwx 1 root root 10 Feb  7 12:15 scsi-SATA_ST9808210A_3LF0BTBS-part5 -> ../../sda5
lrwxrwxrwx 1 root root 10 Feb  7 12:15 scsi-SATA_ST9808210A_3LF0BTBS-part6 -> ../../sda6
lrwxrwxrwx 1 root root 10 Feb  7 12:15 scsi-SATA_ST9808210A_3LF0BTBS-part7 -> ../../sda7
*********************** END /dev/disk/by-id

*********************** BEGIN /dev/disk/by-uuid
total 0
lrwxrwxrwx 1 root root 10 Feb  7 12:15 2330a9ac-59a5-43c5-b478-02bc24e20684 -> ../../dm-4
lrwxrwxrwx 1 root root 10 Feb  7 12:15 50da5cd7-f144-4bd8-a4d6-3d6ea58a0843 -> ../../dm-5
lrwxrwxrwx 1 root root 10 Feb  7 12:15 62e94758-f89e-4964-b32f-457d97fa60a5 -> ../../dm-2
lrwxrwxrwx 1 root root 10 Feb  7 12:15 a087193e-3405-4fa4-a621-9deeddbb25e9 -> ../../dm-1
lrwxrwxrwx 1 root root 10 Feb  7 12:15 b431cd5c-6711-4b51-8b45-bfc1a70909b4 -> ../../sda3
lrwxrwxrwx 1 root root 10 Feb  7 12:15 c5689b63-e6f7-3511-98a5-1e8ceb93df19 -> ../../sda4
lrwxrwxrwx 1 root root 10 Feb  7 12:15 ebbf0709-6768-4469-9b5f-e89dd26a6754 -> ../../dm-3
lrwxrwxrwx 1 root root 10 Feb  7 12:15 fea2860b-a99a-4cb5-afad-c919cf0f5c69 -> ../../dm-0
*********************** END /dev/disk/by-uuid

-- System Information:
Debian Release: 7.3
  APT prefers stable-updates
  APT policy: (900, 'stable-updates'), (900, 'stable'), (800, 'testing')
Architecture: powerpc (ppc)

Kernel: Linux 3.2.0-0.bpo.4-powerpc
Locale: LANG=C, LC_CTYPE=fr_FR.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.49
ii  grub-common            1.99-27+deb7u2
ii  grub-ieee1275-bin      1.99-27+deb7u2
ii  grub2-common           1.99-27+deb7u2
ii  ucf                    3.0025+nmu3

grub-ieee1275 recommends no packages.

grub-ieee1275 suggests no packages.

-- Configuration Files:
/etc/grub.d/05_debian_theme changed:
set -e
. /usr/lib/grub/grub-mkconfig_lib
test -d "${GRUB_PREFIX}"; cd "${GRUB_PREFIX}"
BACKGROUND_CACHE=".background_cache"
set_default_theme(){
	# Set the traditional Debian blue theme.
	echo "${1}set menu_color_normal=cyan/blue"
	echo "${1}set menu_color_highlight=white/blue"
}
set_background_image(){
	# Step #1: Search all available output modes ...
	local output
	for output in ${GRUB_TERMINAL_OUTPUT}; do
		if [ "x$output" = "xgfxterm" ]; then
			break
		fi
	done
	# ... and check if we are able to display a background image at all.
	if ! [ "x${output}" = "xgfxterm" ]; then
		return 1
	fi
	# Step #2: Check if the specified background image exists.
	if ! [ -f "${1}" ]; then
		return 2
	fi
	# Step #3: Search the correct GRUB module for our background image.
	local reader
	case "${1}" in
		*.jpg|*.JPG|*.jpeg|*.JPEG) reader="jpeg";;
		*.png|*.PNG) reader="png";;
		*.tga|*.TGA) reader="tga";;
		*) return 3;; # Unknown image type.
	esac
	# Step #4: Check if the necessary GRUB module is available.
	if ! [ -f "${reader}.mod" ]; then
		return 4
	fi
	# Step #5: Check if GRUB can read the background image directly.
	# If so, we can remove the cache file (if any). Otherwise the backgound
	# image needs to be cached under /boot/grub/.
	if is_path_readable_by_grub "${1}"; then
		rm --force "${BACKGROUND_CACHE}.jpeg" \
			"${BACKGROUND_CACHE}.png" "${BACKGROUND_CACHE}.tga"
	elif cp "${1}" "${BACKGROUND_CACHE}.${reader}"; then
		set -- "${BACKGROUND_CACHE}.${reader}" "${2}" "${3}"
	else
		return 5
	fi
	# Step #6: Prepare GRUB to read the background image.
	if ! prepare_grub_to_access_device "`${grub_probe} --target=device "${1}"`"; then
		return 6
	fi
	# Step #7: Everything went fine, print out a message to stderr ...
	echo "Found background image: ${1}" >&2
	# ... and write our configuration snippet to stdout. Use the colors
	# desktop-base specified. If we're using a user-defined background, use
	# the default colors since we've got no idea how the image looks like.
	# If loading the background image fails, use the default theme.
	echo "insmod ${reader}"
	echo "if background_image `make_system_path_relative_to_its_root "${1}"`; then"
	if [ -n "${2}" ]; then
		echo "  set color_normal=${2}"
	fi
	if [ -n "${3}" ]; then
		echo "  set color_highlight=${3}"
	fi
	if [ -z "${2}" ] && [ -z "${3}" ]; then
		echo "  true"
	fi
	echo "else"
	set_default_theme "  "
	echo "fi"
}
while read checksum background; do
	if [ -f "${background}" ] && [ "x`sha1sum "${background}"`" = "x${checksum}  ${background}" ]; then
		echo "Removing old background image: ${background}" >&2
		rm "${background}"
	fi
done <<EOF
648ee65dd0c157a69b019a5372cbcfea4fc754a5  debian-blueish-wallpaper-640x480.png
0431e97a6c661084c59676c4baeeb8c2f602edb8  debian-blueish-wallpaper-640x480.png
968ecf6696c5638cfe80e8e70aba239526270864  debian-blueish-wallpaper-640x480.tga
11143e8c92a073401de0b0fd42d0c052af4ccd9b  moreblue-orbit-grub.png
d00d5e505ab63f2d53fa880bfac447e2d3bb197c  moreblue-orbit-grub.png
f5b12c1009ec0a3b029185f6b66cd0d7e5611019  moreblue-orbit-grub.png
EOF
if [ -f "/usr/share/desktop-base/grub_background.sh" ]; then
	. "/usr/share/desktop-base/grub_background.sh"
fi
if [ -n "${GRUB_BACKGROUND+x}" ]; then
	set_background_image "${GRUB_BACKGROUND}" || set_default_theme
	exit 0
fi
for background in *.jpg *.JPG *.jpeg *.JPEG *.png *.PNG *.tga *.TGA; do
	if set_background_image "${background}"; then
		exit 0
	fi
done
if set_background_image "${WALLPAPER}" "${COLOR_NORMAL}" "${COLOR_HIGHLIGHT}"; then
	exit 0
fi
if set_background_image "/usr/share/images/desktop-base/desktop-grub.png"; then
	exit 0
fi
set_default_theme


-- debconf information:
  grub2/kfreebsd_cmdline:
  grub2/device_map_regenerated:
* grub2/linux_cmdline:
  grub2/kfreebsd_cmdline_default: quiet
* grub2/linux_cmdline_default: quiet



More information about the Pkg-grub-devel mailing list