Thanks deadflowr for figuring this out.
ChinaJustin, this should work on Mint as well. I'm not going to try this myself, but deadflowr has and it worked.
Here would be the 06_custom file for Grub 1.99 with just Precise and Windows or Mint and Windows as the text just displays whatever you desire:
Code:
#!/bin/sh
echo 1>&2 "Adding Precise Pangolin 12.04 Newest Kernel, Precise Pangolin 12.04 Previous Kernel and Windows"
exec tail -n +4 $0
# 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.
menuentry "Precise Pangolin 12.04 Newest Kernel" {
set root=(hd0,2)
linux /vmlinuz root=/dev/sda2 ro quiet splash
initrd /initrd.img
}
menuentry "Precise Pangolin 12.04 Newest Kernel (Recovery Mode)" {
set root=(hd0,2)
linux /vmlinuz root=/dev/sda2 ro single
initrd /initrd.img
}
menuentry "Precise Pangolin 12.04 Previous Kernel" {
set root=(hd0,2)
linux /vmlinuz.old root=/dev/sda2 ro quiet splash
initrd /initrd.img.old
}
menuentry "Precise Pangolin 12.04 Previous Kernel (Recovery Mode)" {
set root=(hd0,2)
linux /vmlinuz.old root=/dev/sda2 ro single
initrd /initrd.img.old
}
menuentry "Windows" {
insmod ntfs
set root='(hd0,1)'
search --no-floppy --fs-uuid --set 1CFC7A8DFC7A60C6
chainloader +1
}
With the only difference being ".old" at the end. I am not going to add this to the wiki but, feel free to add it to your custom grub if you want to.
You can see here from the symlinks how it should technically work:
Code:
cavsfan@cavsfan-desktop:/$ ls -l | grep "initrd";ls -l | grep "vmlinuz"
drwxr-xr-x 2 root root 4096 Feb 7 10:57 initrd
lrwxrwxrwx 1 root root 33 Feb 19 15:35 initrd.img -> /boot/initrd.img-3.2.0-38-generic
lrwxrwxrwx 1 root root 33 Feb 14 15:52 initrd.img.old -> /boot/initrd.img-3.2.0-37-generic
lrwxrwxrwx 1 root root 29 Feb 19 15:35 vmlinuz -> boot/vmlinuz-3.2.0-38-generic
lrwxrwxrwx 1 root root 29 Feb 14 15:52 vmlinuz.old -> boot/vmlinuz-3.2.0-37-generic
Bookmarks