Eject CD from iMac

I just installed Linux on my early 2008 iMac. After the install finished the CD didn’t eject. Subsequent reboots just booted from the cdrom again and again.