I would like to create an entry in grub.cfg by creating a file for that in /etc/grub.d and running ubdate-grub2
I have tried modifying /etc/grub.d/40_custom as follows:
#!/bin/sh
exec tail -n +3 $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.
# This is an attempt to use the GRUB 1 stanza for FreeBSD on this system
menuentry "FreeBSD 7.2" {
insmod ufs
set root=(hd0,3,a)
# kernel /boot/loader
drivemap -s (hd0) ${root}
chainloader +1
}
But the resulting grub.cfg won't allow me to boot FreeBSD. Perhaps the volume should be identified as (hd0,8), which is what the FreeBSD boot partition looks like when mounted on Linux (I can mount the BSD volumes from Ubuntu all right).
I would like to create an entry in grub.cfg by creating a file for that in /etc/grub.d and running ubdate-grub2
I have tried modifying /etc/grub. d/40_custom as follows:
#!/bin/sh
exec tail -n +3 $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.
# This is an attempt to use the GRUB 1 stanza for FreeBSD on this system
menuentry "FreeBSD 7.2" {
insmod ufs
set root=(hd0,3,a)
# kernel /boot/loader
drivemap -s (hd0) ${root}
chainloader +1
}
But the resulting grub.cfg won't allow me to boot FreeBSD. Perhaps the volume should be identified as (hd0,8), which is what the FreeBSD boot partition looks like when mounted on Linux (I can mount the BSD volumes from Ubuntu all right).
Suggestions are welcome.