Adding Android-x86 entry to grub2

I decided I want to try Linux Mint 12 LXDE on my netbook, but keep Android for convenience.

I installed Mint and Android on separate partitions but of course Mint doesn't show Grub at boot by default, and grub-update doesn't detect Android.

First off, to show Grub at boot I had to follow the instructions on this thread.

Basically you need to edit /etc/default/grub and comment out the line that says GRUB_HIDDEN_TIMEOUT=0 and then uncomment this: GRUB_GFXMODE=640x480 (and set your resolution) before running sudo update-grub.

Then, to add Android to the Grub choices, you need to edit /etc/grub.d/40_custom and add the following: (Which I found here)

menuentry "Android" { insmod ext2 set root='(hd0,HERE NUMBER OF PARTITION WITH YOUR ANDROID)' linux /android-4.0-RC1/kernel quiet root=/dev/ram0 androidboot.hardware=eeepc acpi_sleep=s3_bios,s3_mode SRC=/android-4.0-RC1 initrd /android-4.0-RC1/initrd.img }

(I changed hardware to eeepc from asus_laptop)

Then sudo update-grub and that should be it.