When using a live distribution, I can exit the system with the following command
This however does not eject the cdrom
shutdown -h now | eject
This shutdown the system, but did not eject the cdrom. It also noted an error that the cdrom was in use.
How can I properly eject the cdrom with the shutdown command?