Comment 45 for bug 699802

Revision history for this message
Timmmm (tdhutt) wrote :

Ok, finally got this to work(ish)! I commented most things out in /boot/grub/grub.cfg, and the menu finally shows up! When I boot it says "error: no suitable mode found \n booting however" or somthing like that.

As an aside, is there meant to be loads of ugly bash-like code in the grub.cfg? Because I'd hate to think that someone was stupid/masochistic enough to voluntarily choose bash as their configuration/scripting language. If someone *was* that stupid, well... I (would have) told you so!

Anyway, below is the configuration that finally (sort of) worked, with all the bash bullshit taken out. I also commented the linux_gfx_mode and recordfail stuff just in case.

I will try setting gfxpayload=text to see if that fixes the "no suitable mode" error.

----------8<-----------

terminal_input console
terminal_output console

menuentry 'Ubuntu, with Linux 3.0.0-13-generic' --class ubuntu --class gnu-linux --class gnu --class os {
# recordfail
# set gfxpayload=$linux_gfx_mode
 insmod gzio
 insmod part_gpt
 insmod ext2
 set root='(hd0,gpt2)'
 search --no-floppy --fs-uuid --set=root 301fb6d4-31e2-41b8-924f-3b073a43bbea
 linux /boot/vmlinuz-3.0.0-13-generic root=UUID=301fb6d4-31e2-41b8-924f-3b073a43bbea ro quiet splash vt.handoff=7
 initrd /boot/initrd.img-3.0.0-13-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-13-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
# recordfail
 insmod gzio
 insmod part_gpt
 insmod ext2
 set root='(hd0,gpt2)'
 search --no-floppy --fs-uuid --set=root 301fb6d4-31e2-41b8-924f-3b073a43bbea
 echo 'Loading Linux 3.0.0-13-generic ...'
 linux /boot/vmlinuz-3.0.0-13-generic root=UUID=301fb6d4-31e2-41b8-924f-3b073a43bbea ro recovery nomodeset
 echo 'Loading initial ramdisk ...'
 initrd /boot/initrd.img-3.0.0-13-generic
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, with Linux 3.0.0-12-generic' --class ubuntu --class gnu-linux --class gnu --class os {
# recordfail
# set gfxpayload=$linux_gfx_mode
 insmod gzio
 insmod part_gpt
 insmod ext2
 set root='(hd0,gpt2)'
 search --no-floppy --fs-uuid --set=root 301fb6d4-31e2-41b8-924f-3b073a43bbea
 linux /boot/vmlinuz-3.0.0-12-generic root=UUID=301fb6d4-31e2-41b8-924f-3b073a43bbea ro quiet splash vt.handoff=7
 initrd /boot/initrd.img-3.0.0-12-generic
}
menuentry 'Ubuntu, with Linux 3.0.0-12-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
# recordfail
 insmod gzio
 insmod part_gpt
 insmod ext2
 set root='(hd0,gpt2)'
 search --no-floppy --fs-uuid --set=root 301fb6d4-31e2-41b8-924f-3b073a43bbea
 echo 'Loading Linux 3.0.0-12-generic ...'
 linux /boot/vmlinuz-3.0.0-12-generic root=UUID=301fb6d4-31e2-41b8-924f-3b073a43bbea ro recovery nomodeset
 echo 'Loading initial ramdisk ...'
 initrd /boot/initrd.img-3.0.0-12-generic
}
}