Quote:
Originally Posted by stevetronik
I added autorun file at CD root
Code:
#!/bin/bash
./setup
eject CDROM
And also eject cdrom doesn't work as intended the CD doesn't eject itself after setup is completed, how should I go about making it automatically eject the CD when setup script or executable is completed? Thank you.
|
You're running a script from a mounted filesystem that attempts to eject that filesystem. It may be possible to work around this, but as long as the script is running, the filesystem is set as 'active' and the kernel will not allow you to unmount it, let alone eject it.
Perhaps you should try the technique employed by a live-cd which creates a virtual drive in ram. The software to be executed is copied over to the virtual drive and this frees up the media device to be unmounted and ejected.
Quote:
Originally Posted by stevetronik
I have enabled to auto run when CD is detected but a auto-run confirmation pop up. Is there a way to bypass this pop as my objective is to create a auto run CD to deploy files without GUI.
|
I'm not certain how to go about this, but my guess would be that you would need to modify some low-level configuration to achieve this. This is a security feature and disabling that pop-up reduces security on the system.