First it is not a trivial question. Bootable CD's and hybrid DVD's (el torito - iso9660) can be created
using hdiutil. Hdiutil is a command line tool only. Burning a bootable cd requires transposing a bootable image file onto a CD, such as a bootable Dos floppy disk image.
Bootable DVD's consist of creating a hfs or hfs+ bootable disk image and then converting it to a
DVD (.cdr) format.
There are many restrictions and rules governing both processes and this forum is probably
not the best place to begin an in depth discussion of this subject due to its complexity.
If you are really interested, then here is an introduction for CD's;
http://www.nu2.nu/bootcd/
There is also a programs for CD management available for OS X;
http://cdrecord.berlios.de/private/cdrecord.html
I compiled cdrtools for my Mac.
For Dvd's:
http://www.index-site.com/bootcd.html
http://www.tuaw.com/2006/07/21/creating-a-bootable-restore-dvd/
http://www.tri-edre.com/english/clonex.html
Kj ♘