I'm trying to add mandriva to grub2 and have difficulties..

Mandriva has it own boot partition on sda1 (ext3) Ubuntu boots in /boot on ubuntu's / partition which is sdb6
Mandriva / partition is: sda5 (ext4)
UUID for Mandriva boot partition is: bf53ebd1-4698-4522-ae0d-f9465aa2f0a3 (sda1)
UUID for Mandriva / is: 658bcd3e-9c69-49c9-8da1-a7e0b9723547 (sda5)
UUID for Mandriva swap is: d3bc2559-4f86-4269-bf25-c99e726c8775 (sda7)

Ive made a file which I have put in /etc/grub.d/ so each time I run update-grub2 it also includes this script.

echo "Adding Mandriva 2010.1" >&2
cat << EOF
menuentry "Mandrivas 2010.1, linux" {
        insmod ext2
        set root='(hd0,0)'
        search --no-floppy --fs-uuid --set bf53ebd1-4698-4522-ae0d-f9465aa2f0a3
        linux /vmlinuz BOOT_IMAGE=linux root=UUID=bf53ebd1-4698-4522-ae0d-f9465aa2f0a3 resume=UUID=d3bc2559-4f86-4269-bf25-c99e726c8775 splash=silent vga=788
        initrd (hd0,1)/initrd-

It gives error kernel panic, and something with initrd beeing shut down before completion