Jump to content
2 posts in this topic

Recommended Posts

I've got Snow Leopard, Kubuntu and Windows 7 all installed on one of the hard drives in my PC.

 

Partitions 1&2 - Windows7

Partition 3 - Kubuntu

Partition 4 - Snow Leopard

 

If I boot off a USB stick that has Chameleon (via the MyHack installation package) I can run Snow Leopard like a dream. I've got all the extra kexts I needed running (audio, video, etc). But for the life of me, I cannot figure out how to ditch the USB stick and run SL via grub2.

 

Grub2 identified the partition and did its default setup for it, but when I choose it, Snow Leopard panics on startup.

 

I assume I'm missing something/did something wrong with the boot block of the Snow Leopard partition but I've tried dozens of Grub entry variants (I've chainloaded till the cows came home) and cant figure it out.

 

Below is the default grub entry. I also tried a VERY stripped down version that just set the root, ran the search line and then chainloaded. No dice. The closest I came was putting the boot0 file in my grub directory and trying to chainload it. When I did that, my system kicked over to windows (go figure)

 

menuentry "Mac OS X (on /dev/sda4)" {
	insmod hfsplus
	set root=(hd0,4)
	search --no-floppy --fs-uuid --set c479a2abf022f518
	insmod vbe
	do_resume=0
	if [ /var/vm/sleepimage -nt10 / ]; then
	   if xnu_resume /var/vm/sleepimage; then
		 do_resume=1
	   fi
	fi
	if [ $do_resume == 0 ]; then
	   xnu_uuid c479a2abf022f518 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/devtree.txt ]; then
		  xnu_devtree /Extra/devtree.txt
	   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
}

×
×
  • Create New...